Using an external Dns server for multiple DA servers

Djunity

Verified User
Joined
Mar 9, 2008
Messages
243
Location
Holland
Hi there.

I got a difficult question.

At the moment we got 3 servers in a datacenter 1 backup server and 2 hosting servers we want the dns to be controled on the backup server so we only got ns1 and ns2 that are controling the dns for the 2 hosting servers ad in the neer future there will be a 3th hosting server.

So the question = how to set da that the dns is controled by the backup server and not on the hosting servers.

I have been looking at the api in da but not quiet shure that does the trick we want.
And also search the forum only thing i found was a small message about a program "master2slave DNS replicator" but i dont see how this could work couse the clients will still have to be able to change there own dns zones and the dont have acces to the backup server where the dns will come to run on

Best regards Djunity
 
I have tried the "master2slave DNS replicator" and it works for me.

I currently have 6 web servers running directadmin and 2 fedora servers running bind.

All the six web servers' dns are running as hidden master and the 2 fedora servers are running as slaves dns server.

The master2slave script on the web servers will extract all the dns zones on the web servers periodically and put the info on a special place.
The master2slave script on the 2 fedora slave dns server will get the dns zone info. from the 6 web servers periodically.

So, if any user on the directadmin web servers make change to the zones, like adding new domain , or change domain name, that change will be reflected automatically on the slave server after a specific period of time.

So, all my customer will use the 2 slave server as their domain name dns, they don't have to make change to their domain dns setting even I move them from one server to another.

Not sure if my case is similar to your case.
 
It works fine for me as well. Of course it's our product :).

It's free and open source, and there's a thread somehere herein dedicated to it.

Jeff
 
pdns

PowerDNS with MySQL backend and Porweradmin works perfect! In other bind systems like Plesk, cPanel and DirectAdmin the only thing that you need to do is put a also-notify line into the options section with the IP of the PowerDNS (in each DA or each bind). You also need to put your DA ip, nameserver and account name into the supermasters table in the PowerDNS. And when you restart the bind of the DA servers it will notify to the PowerDNS and add/update the zone. The pdns should be slave.

José David Bravo Álvarez
http://www.colombiahosting.com.co
 
What do you mean by Mysql backend (does it even exist for BIND)?
Could you explain a bit further about your setup?
 
Thanks for pkilam's clear explanation, I was search about ten posts in jlasman's great work master2slave, but I could not figure which server should install master which install slave until I dig out this post.

Now, I know master2slave should install the master in "DA servers" and slave in a working DNS server like ns1.xxx.com ns2.xxx.com, when the DA servers change the DNS settings the cronjobs will update the slave domain server to the newest setting.

At the end, I suggest to add .htaccess in the namedftp folder, only allow certificated ip to access.

<Limit GET>
order deny,allow
deny from all
allow from .xxx.com
allow from xx.58.230.
</Limit>

Options +indexes
 
You can :).

Note that there are some errors in the instructions; the master2slave script on the master has an error near the last line.

Some day soon I'll rewrite it ;).

Jeff
 
Back
Top