Dig command is a command line tool use for querying DNS nameservers for information about host addresses, mail exchanges, nameservers, and related information. This tool is available on any Linux (unix) or Mac OS X operating system.
Example of using Dig Command
munkwais-MacBook-Pro:~ munkwai$ dig www.google.com
; <<>> DiG 9.8.3-P1 <<>> www.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32350
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0;; QUESTION SECTION:
;www.google.com. IN A;; ANSWER SECTION:
www.google.com. 299 IN A 173.194.126.80
www.google.com. 299 IN A 173.194.126.81
www.google.com. 299 IN A 173.194.126.83
www.google.com. 299 IN A 173.194.126.82
www.google.com. 299 IN A 173.194.126.84;; Query time: 44 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Thu Apr 16 04:29:00 2015
;; MSG SIZE rcvd: 112