Domain Information Groper

From Wikipedia, the free encyclopedia

Domain Information Groper (abbreviated dig, or sometimes DiG) is a network tool, like nslookup, that queries DNS name servers. It can be used to simulate a name resolver or a name server. DiG is often used for network troubleshooting, or for educational purposes.

Here's an example of using DiG:

$ dig ce.sharif.edu
; <<>> DiG 9.2.4 <<>> ce.sharif.edu
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23567
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;ce.sharif.edu.                 IN      A

;; ANSWER SECTION:
ce.sharif.edu.          864000  IN      A       81.31.164.3

;; AUTHORITY SECTION:
ce.sharif.edu.          864000  IN      NS      netserver.ce.sharif.edu.

;; ADDITIONAL SECTION:
netserver.ce.sharif.edu. 864000 IN      A       81.31.164.2

;; Query time: 1 msec
;; SERVER: 81.31.164.2#53(81.31.164.2)
;; WHEN: Wed Nov  1 17:02:16 2006
;; MSG SIZE  rcvd: 87

[edit] References

Paul Albitz and Cricket Liu. DNS and BIND, 5th Edition. Nutshell Series. O'Reilly and Associates, Inc., 2006.

In other languages