[nsd-users] How to add new zones to the slave on NSD 4.0
Johan Ihrén
johani at johani.org
Thu Feb 27 14:41:03 UTC 2014
Hi,
On 25 Feb 2014, at 23:17 , Emre Hasegeli <emre at hasegeli.com> wrote:
> We started using patterns with NSD 4.0 to host zones of out customers.
> I am trying to setup a slave server for backup. It works fine if I run
> "nsd-control addzone" for each zone on both the master and the slave.
> Is it possible to make the slave get the new zones when they are added to
> the master?
As both master and slave are yours, then you can basically wrap the problem like this:
----
#!/bin/sh
master=1.2.3.4
slave=2.3.4.5
zone=$1
nsd-control -s $master addzone $zone mpattern
nsd-control -s $slave addzone $zone spattern
----
I.e. it sounds like this is mostly a question of convenience. If that is correct (I may of course be missing your point) then I think it is strongly preferable not to have more complicated control goop built into the servers when the same control can be easily achieved outside the servers.
Regards,
Johan Ihrén
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20140227/6f3f77b1/attachment.bin>
More information about the nsd-users
mailing list