
dig (domain information groper) is a flexible tool for interrogating DNS name servers. It performs DNS lookups and displays the answers that are returned from the name server(s) that were queried. Most DNS administrators use dig to troubleshoot DNS problems because of its flexibility, ease of use and clarity of output. Other lookup tools tend to have less functionality than dig.
# dig www.google.com
; < <>> DiG 9.3.4-P1 < <>> www.google.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38427
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0;; QUESTION SECTION:
;www.google.com. IN A;; ANSWER SECTION:
www.google.com. 47189 IN CNAME www.l.google.com.
www.l.google.com. 66 IN A 173.194.37.104;; Query time: 0 msec
;; SERVER: 10.193.34.20#53(10.193.34.20)
;; WHEN: Wed Jan 12 20:41:12 2011
;; MSG SIZE rcvd: 68
[/c]


