dig DNS lookup utility

commandline session

$dig

; <> DiG 9.8.4-rpz2+rl005.12-P1 <>
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44167
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;.				IN	NS

;; ANSWER SECTION:
.			17373	IN	NS	a.root-servers.net.
.			17373	IN	NS	b.root-servers.net.
.			17373	IN	NS	c.root-servers.net.
.			17373	IN	NS	d.root-servers.net.
.			17373	IN	NS	e.root-servers.net.
.			17373	IN	NS	f.root-servers.net.
.			17373	IN	NS	g.root-servers.net.
.			17373	IN	NS	h.root-servers.net.
.			17373	IN	NS	i.root-servers.net.
.			17373	IN	NS	j.root-servers.net.
.			17373	IN	NS	k.root-servers.net.
.			17373	IN	NS	l.root-servers.net.
.			17373	IN	NS	m.root-servers.net.

;; Query time: 53 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Thu Jun 20 20:40:07 2013
;; MSG SIZE  rcvd: 228

$

$dig a.root-servers.net

; <> DiG 9.8.4-rpz2+rl005.12-P1 <> a.root-servers.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27425
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;a.root-servers.net.		IN	A

;; ANSWER SECTION:
a.root-servers.net.	14389	IN	A	198.41.0.4

;; Query time: 41 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Thu Jun 20 20:43:28 2013
;; MSG SIZE  rcvd: 52

$

http://pluto.infoclub.in/wp-content/uploads/2013/06/dig.c

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s