I understand the role of a NS record, but what I don't understand is how a client (e.g. my computer) get the NS record in the first place? Please help me fill in the gap:
- I want
abc.com
- I ask ??? for the zone file
- I get the zone file information containing NS records for
abc.com
, which isns1.xyz.com
,ns2.xyz.com
and so on - I ask the authoritative name server for
.com
(which can be obtained from asking the 13 root servers) for the IP address ofns1.xyz.com
- I ask
ns1.xyz.com
what the IP ofabc.com
is. It returns1.2.3.4
- I talk to
1.2.3.4
In point 2, who do I query to get the zone file in the first place? I need to know where the zone file is to know who to ask to get the IP. But how is the zone file found? Or where are the information contained in the millions of zone files stored?