![]() |
offsite DNS (master and slave) solution
Hi guys,
I've been struggling a while to get my setup working as i like... In the old setup i had 2 webservers with ISPConfig installed on it. Server 2 was the slave DNS for server 1 and viceversa. This was getting a bit out of hand so i needed a new solution. I've got two servers (vmware instances) with a new linux installation and only bind installed on the two of them. Below is a plan that i've used for this solution to work. Hopefully it can do good for you too. If you see anything that's off or that could be done better, please respond! I'm always in for a bit finetuning. Oh yeah, i've used public key authentication for the scp to work... 1. Copy all of the zone files to the primairy DNS Code:
Webserver 1:Code:
Include /etc/bind/zones.confCode:
3. Import the slave zones on the slave DNS server. add the following line in named.conf to tell bind. Code:
Include /etc/bind/slave-zones.confCode:
echo > /etc/bind/slave-zones.confOk guys, i've been testing a bit and this here isn't working quite yet... I'm having troubles with inserting the zones into the master DNS... I will adjust the code when it does work. If anyone of you got it right, please post it! *update* I've got it working! above is how i've done it. |
Looks good. Only change I'd make is to not delete the files before re-creating them, but instead make a backup of 'em all into a tar file that is time/date stamped, so should something Go Wrong you can always recover. Maybe back up the actual zone files as well at the same time...
|
| All times are GMT +2. The time now is 08:31. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.