DNS Replication
Author
Discussion

shocker-z

Original Poster:

554 posts

249 months

Wednesday 4th July 2007
quotequote all
What is the best and simplest way to replicate DNS between 2 DNS servers at different locations?

I havn't dealt with DNS replication yet and i've got to impliment this very shortly for our office and would like to know a simple solution to this.


Thanks a lot

Liam

JamieBeeston

9,294 posts

296 months

Wednesday 4th July 2007
quotequote all
Master-Secondry does DNS zone replication... if you update the master, the slave updates from the master.. if the master dies, the slave keeps working for another week or so...

Depends on how redundant you need to go.

J

shocker-z

Original Poster:

554 posts

249 months

Wednesday 4th July 2007
quotequote all
Where do i tell the secondary server to trust and update from the primary server?

Will i need to set up a VPN between both servers?


Doesn't need to be megga redundant as the guy who originaly setup the network had both DNS servers on the same router at same place! lol

And we host our own domain so as soon as we went down we had no redundancy.

Liam

hutchingsp

68,520 posts

241 months

Wednesday 4th July 2007
quotequote all
shocker-z said:
Where do i tell the secondary server to trust and update from the primary server?

Will i need to set up a VPN between both servers?


Doesn't need to be megga redundant as the guy who originaly setup the network had both DNS servers on the same router at same place! lol

And we host our own domain so as soon as we went down we had no redundancy.

Liam
It depends on the OS but the principle is that you add a Secondary DNS zone to the server that you want to be the secondary, and on the master you permit Zone Transfers Requests from the secondary.

If it's your public facing DNS tbh I'd spend $30 a year and have it hosted by someone like easyDNS.

What's the context here?

Edited by hutchingsp on Wednesday 4th July 19:35

kiwisr

9,335 posts

238 months

Wednesday 4th July 2007
quotequote all
What is the OS?
Is it for internal or external use?
Does it currently contact any other servers?

_dobbo_

14,619 posts

279 months

Thursday 5th July 2007
quotequote all
Not necessarily the OS that's important as what DNS server software you are running - if it's bind it could be any OS.

Using bind it's fairly simple - on the primary DNS server you have a master "named.conf" file which tells the server what zone files to load - it will need to contain a line which allows transfers to the secondary server:

allow-transfer { 1.2.3.2; };

Then a zone definition for each domain:

zone "blahblah.com" {
type master;
file "blahblah.txt";
};



Then you install bind on the secondary DNS server and setup the named file to look like this:


zone "blahblah.com" {
type slave;
file "blahblah.txt";
masters {
1.2.3.1;
};
};



kiwisr

9,335 posts

238 months

Thursday 5th July 2007
quotequote all
_dobbo_ said:
Not necessarily the OS that's important as what DNS server software you are running - if it's bind it could be any OS.
It does make a difference when it comes to setting it up, you obviously can use the MMC snap-in under Windows, in addition if Active Directory Integrated zones are being used then it is different again.

shocker-z

Original Poster:

554 posts

249 months

Thursday 5th July 2007
quotequote all
Sorry for delay in getting back,

Its windows 2003 server with standard windows DNS server

It's external hence why were having them at 2 seperate locations, to be honest the records are rarley updated possible 10 changes in a month with 50+ domains in the list.


Regards and thanks to all
Liam

hutchingsp

68,520 posts

241 months

Thursday 5th July 2007
quotequote all
shocker-z said:
Sorry for delay in getting back,

Its windows 2003 server with standard windows DNS server

It's external hence why were having them at 2 seperate locations, to be honest the records are rarley updated possible 10 changes in a month with 50+ domains in the list.


Regards and thanks to all
Liam
OK so you'd need to add each zone (domain name) to the Secondary server and when asked specify that it's a secondary zone and when prompted specify the primary server.

The important thing is to ensure you enable Zone Transfers on the Primary DNS server, and that you restrict the IP's that can perform a Zone Transfer to that of your Secondary.