Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: ejortegau on April 12, 2012, 06:58:03 am

Title: DNS replication
Post by: ejortegau on April 12, 2012, 06:58:03 am
Hi:

I have a zentyal box as authoritative DNS server for my domain. I would like to have a second one, but I don't want to have to enter any DNS changes in the configuration on both boxes. Would it be possible to make the changes in just one of them and have them replicated in the other one? Sort of like LDAP's master-slave replication?

Thanks.
Title: Re: DNS replication
Post by: christian on April 12, 2012, 10:13:48 am
I fully support your request and suggest you add it in the "feature request" section.
What you are asking for is already part of Bind (piece of software supporting DNS)   8)
From technical standpoint, this is not exactly "replication" but "zone transfer".

You can have a look here:
http://en.wikipedia.org/wiki/DNS_zone_transfer (http://en.wikipedia.org/wiki/DNS_zone_transfer)
http://tldp.org/HOWTO/DNS-HOWTO-5.html (http://tldp.org/HOWTO/DNS-HOWTO-5.html)
http://www.zytrax.com/books/dns/ch7/xfer.html (http://www.zytrax.com/books/dns/ch7/xfer.html)

Cool but... this is not (yet ?) available using Zentyal GUI.

Would you need it, you can still hack Zentyal and do it manually via hooks  8)
Title: Re: DNS replication
Post by: ejortegau on June 28, 2012, 09:30:12 pm
Hi:

Thanks for your reply, I modded the bind template files that zentyal uses and configured my slave dns to pull the zones. It was fairly easy after reading some of the links you provided :-)

Title: Re: DNS replication
Post by: holtandrei on November 23, 2013, 06:58:14 pm
Yes, I would defenetly appreciate this
Title: Re: DNS replication
Post by: desperados on September 15, 2016, 10:13:23 am
hi
sorry if I reply to a so old post, but it's exactly what I need
I have customized zentyal dns template file, and I've added some zones that are useful for me
I modify them in my main server and with rsync I syncronize them in backup / secondary server

but I don't understand how it works for the local domain, I've not added hosts in my backup server but it resolves them correctly, the file /var/lib/bind/db.10.168.192 is quite empty (it has only header informations, no hosts except itself and main server)
are they saved in some database? ldap?