Secondary dns.

pug123

Verified User
Joined
Feb 5, 2006
Messages
49
Location
Poland
Hello !

Here is my situation. Just bought DA and have it installed on server which also act as primary ns however I got 3 ips.

Additionally I've got small vps for secondary purposes only(one ip address).

How automatically update secondary dns with new zones from primary server Is this script master2slave solution? Where can I get some help how to setup this?

I've searched this forum, however I'm very new to DirectAdmin so please excuse me if asking for something which was explained.

best regards for all and thanks for any help in advance !

Mart
 
Offsite DNS

Hi Pug,

Whilst I cannot answer your question about dns servers with DA for which I am sorry. Iwould like to pass on my advice never to host your own name servers especially on the same machines as sites or other services.

After many years of problems (Network Outages, Data Center Fires, etc....) I have learnt the value of using an external (Professional) for this job. I use http://www.dnsmadeeasy.com and it makes life so much easier. If you host goes down you cannot access the site to update DNS records to repoint to backup servers and such.

Again sorry for not answering you original question.

Stephen
 
Secondary DNS

Hi,
I found a way to have a slave DNS without having to have a secon DA server.
Just add in your named.conf the following:

options {
directory "path/to/files";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
notify yes;
allow-transfer {XX.XX.XX.XX;};
};

That will do it.
But of corse you can't have a slave for one zone and an other slave for an other zone.
 
Thank's jlasman for this little software...
But can you explain me why I should use Masetr2slave instead of modifiing the named.conf with the
notify yes;
allow-transfer {XX.XX.XX.XX;};
};
After reading the readme file, I found that master2slave does the same thing
Am I right?

Thank's

Martin
 
Martin said:
Thank's jlasman for this little software...
But can you explain me why I should use Masetr2slave instead of modifiing the named.conf with the
notify yes;
allow-transfer {XX.XX.XX.XX;};
};
After reading the readme file, I found that master2slave does the same thing
Am I right?

Thank's

Martin
Martin,
Just adding the allow-transfer and notify options only allow you to notify a Name Server that already knows about the domain. I haven't looked at master2slave yet, but I believe that it creates the slave zone file for new domain. Once the slave entry is there they can then be automatically updated when the master changes something.
 
Last edited:
But this append automatically when a slave server recive a notify from is master server. But of corse you must configure the zone manuaally on the slave server for that to append.
If my understanding is ok, Master2slave will do that for you so yon don't have to "manage" 2 servers...
 
Yes, that is what it does. I creates the zone files for the slave server, so you don't have to maually add them for each new domain.
 
It doesn't create the zone files.

It adds slave zone references to the named.conf file, so the transfers will work and so the slave server will serve the DNS.

If you ask on the official BIND mailing list (also gated to a Usenet Newsgroup) they'll say that BIND doesn't do that; you have to do it yourself.

So we did :) .

Jeff
 
Back
Top