PDA

View Full Version : DNS auto-create zones on all DNS servers


assi
21st March 2009, 23:20
Hi,

I'm kinda new to Linux, so please excuse the "newbie" type question.

We have a scenario where we need to set up two or more DNS servers that will synchronize DNS changes amongst themselves automatically.

Specifically, we have a need to create new DNS zones (domains) on one of the DNS servers, and have the new zones automatically created on the other servers. Obviously, we will need the zones to keep in-sync through regular zone transfers.

I've been able to achieve this in the past using cPanel's DNS Cluster functionality, but was wondering if there is a non-proprietary solution that does this (e.g. built into BIND).

And again, just so I'm clear - one of the main requirements is that we can create new zones on the "master" / "primary" server, and these zones get automatically created on the "slave" / "secondary" server(s). Hope that makes sense.

Thanks in advance,
Assi.

falko
22nd March 2009, 16:13
Yes, zone transfers are built into BIND. Take a look here: http://www.howtoforge.com/traditional_dns_howto

assi
23rd March 2009, 08:06
Falko,

Thanks for that.

However, I'm still uncertain about what happens with new domains. Specifically, our requirement is that we can create new domains on the "master" name server, and have these domains automatically created on all "secondary" domains.

From what I've seen, the standard methods with BIND only deal with existing domains which you pre-configure on both the primary and the secondary name servers, then have zone transfers take care of ongoing synchronization.

The reason we need this, is due to the fact that we create several new domain zones on daily basis, and we would like to keep the administration as simple as possible.

Thanks again,
Assi.

falko
24th March 2009, 18:03
In that case I suggest you use a MySQL-based DNS server (MyDNS or PowerDNS) and set up database replication from the master to the slave.

assi
25th March 2009, 09:43
Thanks Falko. I'll give it a shot.

SamTzu
30th March 2009, 16:35
I have been thinking about something similar.

What do you think would be the best way to go about building a scenario where you have X Number of (MyDNS?) 'master' name servers that are automatically replicated with 'ns1.server.com' which in turn gets it's slave zones from Z Number of different ISPConfig3 servers that are 'mainly' operated by the ReSales people?

This way the Clients on the ISPConfig3 server's could have total control of their zones while ns1 would be the primary node where all the rest of the name servers would get their data.

Is this possible?

falko
31st March 2009, 17:56
If I understand you right, this is possible. :)

SamTzu
31st March 2009, 19:32
Life is beatifull. :)
I'm going to build me a system like that this week.