You can check a DNS record for your domain name using a third party website such as:
- Open IntoDNS.
- Enter your domain and click Report
- All DNS records for your domain name will now show.
- You can now compare the IP address with the IP address of your web server.
You can also check a DNS record using Mac’s Terminal application:
Open Terminal (Applications > Utilities > Terminal)
Type the following command:
dig www.yourdomain.com
The result will look similar to the below;
; < <>> DiG 9.8.3-P1 < <>> www.yourdomain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28713
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.yourdomain.com. IN A
;; ANSWER SECTION:
www.yourdomain.com. 300 IN A 10.10.10.10
;; Query time: 25 msec
;; SERVER: 10.0.1.1#53(10.0.1.1)
;; WHEN: Thu Mar 31 18:56:50 2016
;; MSG SIZE rcvd: 49
The IP address which the DNS Record is pointing to is shown in the following line (shown above in bold)
www.yourdomain.com. 300 IN A 10.10.10.10