[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 319
  • Last Modified:

DNS server replica

WE are running Bind as our DNS server and we need to setup a replica serverr remotely. How can I do it?
Do I need to rsync the zone manually through cron? Or is there a daemon I can use to check serial number and if there is any change, it will do the transfer. Thanks in advance
0
mokkan
Asked:
mokkan
  • 3
  • 2
1 Solution
 
nociSoftware EngineerCommented:
//Create slave zones on the replica server.
zone "blabla.com" {
   type slave;
   masters { master-ip; };
...
};

//Enable transfers from the masterzones.
zone "blabla.com" {
    type master;
    allow-transfer { slave-ip; };
.....
};

and allow tcp/53 on the firewall to the master.
0
 
mokkanAuthor Commented:
How does it sync the data? Automatically or do I need to do anything?
0
 
nociSoftware EngineerCommented:
If you update the serial number in the SOA record, (on the master obviously) the master sends a update tribber to it's known slaves.
The slaves can then initiate a transfer. Same happens when a zone is reloaded, the slave gets the serial number from the server, and decides if it want to load.

Besides that the SOA record is checked every n seconds (also in the SOA) and then checks the serials.
0
 
mokkanAuthor Commented:
Thank you
0
 
mokkanAuthor Commented:
Thanks a lot
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now