LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   multiple bind9 setup and transfer zones (https://www.linuxquestions.org/questions/linux-software-2/multiple-bind9-setup-and-transfer-zones-896704/)

Patric.F 08-11-2011 03:58 AM

multiple bind9 setup and transfer zones
 
Hi,


I'm going to setup two DNS servers to begin with. Although I've been playing around with Bind before and changed/created records in zones etc. the setup and it's configuration is just a little confusing at the moment.

I will be using Debian 6.0 with the Bind version in the repository.

The thing I need help understanding is how do I transfer zones between the servers?
If I create a new zone/domain on the "master" server and do a reload of Bind, will it transfer the whole zone configuration or will I have to enter it manually on the "slave" in /etc/bind/named.conf.local?

If I have to do it manually, is there a way to do this automatically with a script or some configuration?


How would you setup two DNS servers? Do I set them up as "master" and "slave" so I only change the records on the master and it will automatically transfer the changes to the slave/s? What if the master server dies and I need to change the records, how will this be handled?


Thanks for any information!
-Patric

bathory 08-11-2011 07:03 AM

Hello,

Quote:

If I create a new zone/domain on the "master" server and do a reload of Bind, will it transfer the whole zone configuration or will I have to enter it manually on the "slave" in /etc/bind/named.conf.local?
You should manually add the new zone definition in slave's named.conf and after that everything is done automatically.

Quote:

If I have to do it manually, is there a way to do this automatically with a script or some configuration?
Sure you can write a script to append the new zone definition in slave's named.conf. You can also add zones dynamically on both master and slave(s), if you run a recent version of bind.

Quote:

How would you setup two DNS servers? Do I set them up as "master" and "slave" so I only change the records on the master and it will automatically transfer the changes to the slave/s? What if the master server dies and I need to change the records, how will this be handled?
Yes, using a master/slave(s) approach is the usual way
If master dies, you can change records in slave and increase the serial, so when master comes up again, no transfer will happen. Then you can transfer the updated zone from the slave to the master.

Regards


All times are GMT -5. The time now is 01:00 AM.