Hi,
as it was written to add/remove zone could be nsd-control used.
To be full automatic, try to combine
there is a nice post about it on
And another link to the same site
greetings Jan-Piet
https://jpmens.net/2013/02/13/automatic-provisioning-of-slave-dns-server
s/
Depends on the master you have, but the idea on slave NSD is as follow
run nsnotify on the slave on port 5353
from master add nofify also on this port
notify: slave@53
notify: slave@5353
the nsnotifyd script should be like
- find if zone exists
nsd-control zonestatus | grep ^zone | awk '{print $2}' | grep
"^${ZONE}$"
- if not ad the zone
nsd-control addzone ${ZONE} pattern
For removing the zone could the the meta.meta zone used as described
on the post above.
If need could help, free of charge of course 
regards
Peter
Hi,
May I ask another question? I want to have two or three
nameservers, so one Master and one or two Slaves. There are some
opportunities like AXFR but I'm afraid of loosing synchronicity.
As I want all servers to provide the same data the same time what
would be the best approach for doing this? Is it a good approach
to directly transfer files automatically over SSH from the Master
to the Slaves when there are changes or should I use AXFR?
You can set up your slaves in master mode. Then you can copy your
zone files from the master to the slaves using scp or rsync, and
reload NSD to make it re-read the updated zone files. However, this
is more cumbersome and increases the chance of failure.
AXFR is a perfectly fine mechanism to use for keeping slaves
synchronised with the master, and I recommend it. If you send
NOTIFY messages from the master to the slaves, then they should
update almost immediately after the master is updated.
Regards, Anand _______________________________________________
nsd-users mailing list nsd-users@NLnetLabs.nl
https://open.nlnetlabs.nl/mailman/listinfo/nsd-users
- --
*Peter Hudec*
Infraštruktúrny architekt
phudec@cnc.sk <mailto:phudec@cnc.sk>
*CNC, a.s.*
Borská 6, 841 04 Bratislava
Recepcia: +421 2 35 000 100
Mobil:+421 905 997 203
*www.cnc.sk* <http:///www.cnc.sk>