You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add zonesync config file to named config: `cat "include \"zonesync/zonesync.SLAVE.IP.ADDRESS.named.conf\";"`
31
+
* Add zonesync config file to named config: `cat "include \"zonesync/zonesync.SLAVE.IP.ADDRESS.named.conf\";" >> /etc/named.conf`
32
+
30
33
31
34
3. Verify:
32
35
* On Master (as zonesync user) run: `./zonesync.sh` and check for any errors. If you get the message `Successful synchronization to SLAVE.IP.ADDRESS.` move on to the next step.
@@ -37,9 +40,30 @@ zoneSync is a bash script for synchronizing DNS records between masters and slav
37
40
38
41
5. Enjoy!
39
42
43
+
### Slave to Slave Replication
44
+
1. Edit original Master and add secondary's ip address to the allow-transfer and also-notify sections of named.conf
45
+
46
+
2. Install zoneSync on first master:
47
+
* Change to user zonesync (if not already logged in as zonesync user): `su - zonesync`
48
+
* Get latest version of zoneSync: `git clone https://github.com/truenegative/zonesync.git`
49
+
* Open up zonesync/zonesync.sh with vi or nano and change the variables at the beginning to match your slave server IP address and bind configuration.
50
+
* Ensure that the SLAVE.IP.ADDRESS is in the allow-transfer and also-notify section of the main named.conf.
51
+
3. On secondary slave:
52
+
* Create zonesync folders: `mkdir -p /var/named/zonesync && mkdir -p /var/named/zonesync/slaves` ( (`NOTE`): Use /var/named/chroot/var/named for chroot'd bind installations)
* Add zonesync config file to named config: `cat "include \"zonesync/zonesync.SLAVE.IP.ADDRESS.named.conf\";" >> /etc/named.conf`
55
+
4. Verify slave to slave
56
+
* On Slave (as zonesync user) run: `./zonesync.sh` and check for any errors. If you get the message `Successful synchronization to SLAVE.IP.ADDRESS.` move on to the next step.
57
+
* On Secondary Slave, verify that /var/named/zonesync/zonesync.SLAVE.IP.ADDRESS.named.conf exists and is correct. If everything looks good, restart named: `service named restart`
58
+
5. Set up cronjob on Slave to sync to Secondary Slave a few minutes apart from original cronjob
Thanks to everyone who I've bugged to get this working over the last few years. You guys know who you are! If you have some ideas for this or would like to see an additional feature added, submit an issue and we'll see what we can do about getting it included.
44
65
45
66
If you would like to help contribute to this project, feel free to submit pull requests and help out!
0 commit comments