Hello!
I had to run fast secondary DNS on VPS and I couldn't find time to dig this forum and find solutions so I wrote one line crontab and it's works
THis is the most simple solution for slave DNS without directadmin.
It works sending dns zones to secondary nameserver every 5minutes.
Here are the steps.I've made them work on Debian Etch but it should work similar in other distributions as well but probably you would have to change some paths.
1) On secondary server(or vps) instal bind9 and all bind tools.
2) On primary server with directadmin type crontab -e and insert
(10.10.10.10 is secondary server's IP. Replace it with your secondary server's IP)
Yes, that is all Now master server will be sending dns zones to secondary DNS server and reloading it every time after load new zones.
I know that this is not best solution.It is probably the most poor solution however for sure it is very fast one to setup
Enjoy,
Mart
I had to run fast secondary DNS on VPS and I couldn't find time to dig this forum and find solutions so I wrote one line crontab and it's works
THis is the most simple solution for slave DNS without directadmin.
It works sending dns zones to secondary nameserver every 5minutes.
Here are the steps.I've made them work on Debian Etch but it should work similar in other distributions as well but probably you would have to change some paths.
1) On secondary server(or vps) instal bind9 and all bind tools.
2) On primary server with directadmin type crontab -e and insert
Code:
*/5 * * * * scp /etc/bind/*.db [email protected]:/etc/bind/; scp /etc/bind/named.conf [email protected]:/etc/bind/;ssh [email protected] "/etc/init.d/bind9 reload"
Yes, that is all Now master server will be sending dns zones to secondary DNS server and reloading it every time after load new zones.
I know that this is not best solution.It is probably the most poor solution however for sure it is very fast one to setup
Enjoy,
Mart
Last edited: