Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Say I've operating ns1.example.org and ns2.example.org on which I want to host the zone file for example.com

When I go to my registrar and purchase example.com , I will tell my registrar that my nameservers are ns1.example.org and ns2.example.org

My question then is, why do I then also need to specify those nameservers in the zone file for example.com ? Haven't I already told the .com nameservers where to lookup information on example.com , making the NS records redundant?

Clearly I'm missing some crucial fact...

share|improve this question

1 Answer 1

up vote 6 down vote accepted

NS Records inside the zone are authoritative, the ones received from the registrar (the ones delegating the domain) are not, so if a server receives any difference from those records, the authoritatives win. Also, servers listed in the NS record will receive a NOTIFY in case of zone changes (so the slaves can check for updates and so on). One last thing, the RFCs 1034 and 1035 say that they must exist, so they must exist!

share|improve this answer
1  
I wanted to post an answer exactly like that. But it came first. –  Gopoi Apr 4 '11 at 1:46
    
Are there legitimate use cases for having the NS records not match the registrar's delegation? –  Nathan O'Sullivan Apr 4 '11 at 1:49
    
@nathan Well you can have many NS records on your file, but some registrars will limit the number of name servers you can add on their interfaces. Now about having completely different records on the registrar and the zone file no I can't think on any right now. –  coredump Apr 4 '11 at 2:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.