Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have domain and I set NS records for this domain on Registrator Page.

For egz.:

On these ns servers I have Records A, MX.

If I need set NS records on and for any reason? Is that does something? What with SOA record, where it should be placed?

Thanks for answers.

share|improve this question
What DNS software are you running? – Chris S Aug 24 '12 at 12:59

Yes, the name servers that are serving up the A, MX, etc records need to know that they are authoritative, so they must also have the NS records. You should configure one as a Master and the other as a Salve (if you have more than two the rest should all be Slaves too).

The other answer has a lot of good information, but I don't think he ever actually answers your question.

If you're running BIND, your Master DNS server should have an entry like this in named.conf:

acl "mysecondaries" {;

zone "" {
        type master;
        file "master/";
        allow-transfer { "mysecondaries"; };

On the Slave server something like this:

zone "" {
        type slave;
        file "slave/";
        masters {; };

The actual record (make this file only on the Master) should look like this:       IN SOA {
                                2012082401 ; serial
                                10800      ; refresh (3 hours)
                                3600       ; retry (1 hour)
                                604800     ; expire (1 week)
                                86400      ; minimum (1 day)

                NS      ns1
                NS      ns2

                MX      10 mail

ns1             A
ns2             A

mail            A

www             CNAME
@               CNAME

While I'm at it. There are Free secondary/slave DNS services so you don't need to operate two of your own. Many personal and small websites are setup this way. I use and myself.

To add them, add the following to your named.conf on your Master server:

acl "afraid" {;

acl "buddyns" {;;

And change your allow-transfer directive for each zone in your named.conf on your Master:

        allow-transfer { "afraid";
                         "mysecondaries"; };

And add the relevant ns records to your zone files:


There are various ways to get really fancy with these configurations (if the above seems really manual, it is; but that also makes it fairly easy). Unless you're parking a ton of domains you really don't need to get into anything more complicated.

share|improve this answer

Your Answer


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.