DNS Glue Record Check

From richud.com
Jump to: navigation, search


Recently changed IP at provider to a fixed one and needed to update the NS's Glue Record - but how do you know if its working right?? This is what I found out. (I need to learn more about DNS!)

Find your NameServers for .com root

$ dig +short com. NS
e.gtld-servers.net.
f.gtld-servers.net.
b.gtld-servers.net.
j.gtld-servers.net.
a.gtld-servers.net.
g.gtld-servers.net.
i.gtld-servers.net.
d.gtld-servers.net.
h.gtld-servers.net.
c.gtld-servers.net.
k.gtld-servers.net.
l.gtld-servers.net.
m.gtld-servers.net.

Query a .com root NameServer for your NameServer

This should return the IP its glued to (92.234.13.94) in this case. This means its set right.

Update time : not sure , think was fairly rapid (not TTL determined?)

$ dig +norec @a.gtld-servers.net. scaryscary.com. NS

; <<>> DiG 9.7.3 <<>> +norec @a.gtld-servers.net. scaryscary.com. NS
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38855
;; flags: qr; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;scaryscary.com.			IN	NS

;; AUTHORITY SECTION:
scaryscary.com.		172800	IN	NS	dns.scaryscary.com.

;; ADDITIONAL SECTION:
dns.scaryscary.com.	172800	IN	A	92.234.13.94

;; Query time: 173 msec
;; SERVER: 192.5.6.30#53(192.5.6.30)
;; WHEN: Wed Feb 15 20:24:54 2012
;; MSG SIZE  rcvd: 66

Check its working with dig trace

If it is it should return at the end "Received 66 bytes from 92.234.13.94" , where IP is your NS IP. Prior to this it was stopping at "Received 66 bytes from 192.55.83.30"

Update time: 48 hours?


$ dig +trace @a.gtld-servers.net. dns.scaryscary.com

; <<>> DiG 9.7.3 <<>> +trace @a.gtld-servers.net. dns.scaryscary.com
; (1 server found)
;; global options: +cmd
.			518400	IN	NS	f.root-servers.net.
.			518400	IN	NS	g.root-servers.net.
.			518400	IN	NS	h.root-servers.net.
.			518400	IN	NS	i.root-servers.net.
.			518400	IN	NS	j.root-servers.net.
.			518400	IN	NS	k.root-servers.net.
.			518400	IN	NS	l.root-servers.net.
.			518400	IN	NS	m.root-servers.net.
.			518400	IN	NS	a.root-servers.net.
.			518400	IN	NS	b.root-servers.net.
.			518400	IN	NS	c.root-servers.net.
.			518400	IN	NS	d.root-servers.net.
.			518400	IN	NS	e.root-servers.net.
;; Received 228 bytes from 192.5.6.30#53(192.5.6.30) in 135 ms

com.			172800	IN	NS	j.gtld-servers.net.
com.			172800	IN	NS	m.gtld-servers.net.
com.			172800	IN	NS	f.gtld-servers.net.
com.			172800	IN	NS	h.gtld-servers.net.
com.			172800	IN	NS	k.gtld-servers.net.
com.			172800	IN	NS	c.gtld-servers.net.
com.			172800	IN	NS	g.gtld-servers.net.
com.			172800	IN	NS	e.gtld-servers.net.
com.			172800	IN	NS	d.gtld-servers.net.
com.			172800	IN	NS	l.gtld-servers.net.
com.			172800	IN	NS	a.gtld-servers.net.
com.			172800	IN	NS	i.gtld-servers.net.
com.			172800	IN	NS	b.gtld-servers.net.
;; Received 496 bytes from 128.8.10.90#53(d.root-servers.net) in 98 ms

scaryscary.com.		172800	IN	NS	dns.scaryscary.com.
;; Received 66 bytes from 192.55.83.30#53(m.gtld-servers.net) in 281 ms

dns.scaryscary.com.	86400	IN	A	92.234.13.94
scaryscary.com.		86400	IN	NS	dns.scaryscary.com.
;; Received 66 bytes from 92.234.13.94#53(dns.scaryscary.com) in 82 ms