When does the NS lookup chain stop?
For example, if I go to A.com
and the NS for A.com
is ns.B.com
.
Then the client (browser) needs to find out the IP for B.com
, NS for B.com
is ns.C.com
.
Then the client needs to find out the IP for C.com
, NS for C.com
is ns.D.com
.
Then the client needs to find out the IP for D.com
, NS for D.com
is ns.E.com
..
I mean where does this chain stop exactly?
Generally speaking the NS records are stored as glue. So when you go to
a.com
you go to the root (*.root-servers.net) which are hardcoded into your dns servers. In the case of .com you then get pointed at *.gtld-servers.net which host the .com tld. From there you would be given the NS records fora.com
along with the IP addresses due to the glue records. Here is an example of looking for google..The address of ns3.google.com was obtained from the gtld-server returned in the additional section.