Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I wonder if something like that is possible. To have one domain, handled by 2 DNS servers, master zones.

For example, I have the domain, domain.com on a registrar and I want to make ns1.domain.com and ns2.domain.com. I want to have ns1.domain.com on VPS1 and ns2.domain.com on VPS2, both having a BIND installed, pointing to VPS3, where the website is hosted.

Can be done, like that ? To have 2 master zones for same domain, with one ns each, on different IP's, both pointing to another one.

share|improve this question

1 Answer 1

This is a standard approach for setting up DNS. Two DNS servers would be considered the minimum.

Usually you would nominate one as the master of the zone, and one as the slave.

The master config would look something like this:

zone "domain.com" {
        type master;
        allow-transfer { <slave IP>; };
        file "/etc/bind/pri/db.domain";


And the slave would look something like this:

zone "domain.com" {
       type slave;
       masters { <master ip>;};
        file "/etc/bind/sec/db.domain";


The slave will take updates from the master, so you only need to update the zone on the master and it will get copied to the slave.

share|improve this answer
Thank you, that makes sense. I will try to do that between several vps as dns backups. –  Graphite Mar 20 '13 at 23:28

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.