Dig command

Dig is a great little command to run on a Linux/Unix box’s this command will give you all sorts of info about the domain.

The command is dig @”name server” domain name 

OR to just use the configure DNS server

dig domain name 

E.G. dig @”name server” techeez.com

;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47383
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;techeez.com. IN A

;; ANSWER SECTION:
techeez.com. 86400 IN A 216.86.100.45

;; AUTHORITY SECTION:
techeez.com. 86400 IN NS ns.pacificcoast.net.
techeez.com. 86400 IN NS ns1.pacificcoast.net.

;; ADDITIONAL SECTION:
ns.pacificcoast.net. 86400 IN A 216.86.100.2
ns1.pacificcoast.net. 1364 IN A 216.86.96.2

;; Query time: 74 msec
;; SERVER: 216.86.96.2#53(ns1.pacificcoast.net)
;; WHEN: Wed Apr 16 17:06:35 2003
;; MSG SIZE rcvd: 128

 

For MX look up (where mail is pointing) just add MX to the end of it.

 

Leave a Reply