<div style="font-family: Arial; text-align: left; font-size: 14px; color: #000000;">Hi Wouter,</div><div style="font-family: Arial; text-align: left; font-size: 14px; color: #000000;"><br></div><div style="font-family: Arial; text-align: left; font-size: 14px; color: #000000;">first, thanks a lot for your fast messag! I'll try that out soon.</div><div style="font-family: Arial; text-align: left; font-size: 14px; color: #000000;"><br></div><div style="font-family: Arial; text-align: left; font-size: 14px; color: #000000;">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?</div><div style="font-family: Arial; text-align: left; font-size: 14px; color: #000000;"><br></div><div style="font-family: Arial; text-align: left; font-size: 14px; color: #000000;">Kind regards,</div><div style="font-family: Arial; text-align: left; font-size: 14px; color: #000000;">Kaulkwappe<br><br><hr style="border: 0; border-bottom: 1px solid #DADADA;"><b>From:</b> W.C.A. Wijngaards <<a href="/email/new/1/wouter@nlnetlabs.nl">wouter@nlnetlabs.nl</a>><br><b>Sent:</b> Tuesday, 26. Jun 2018 – 10:47 CEST +0200<br><b>To:</b> <a href="/email/new/1/nsd-users@NLnetLabs.nl">nsd-users@NLnetLabs.nl</a><br><br><b>Subject:</b> Re: [nsd-users] How to dynamically add and remove zones?<br><br></div><div>
<style>
body {
font-family: "Arial";
font-size: 100% !important;
margin: 0;
line-height: 1.2rem;
}
</style>
<pre style="white-space: pre-wrap; color: #173860;">Hi Kaulkwappe,
On 26/06/18 10:32, kaulkwappe@prvy.eu wrote:
> Dear colleagues,
>
> I'm not very familiar with nameserver software but it seems NSD is a
> quite simple and robust solution for me. But I wonder how I can
> dynamically add or remove zones without restarting the deamon?
If that pattern contains a zone file name, eg. something with the '%s'
that is replaced with the zone name, like "zones/%s.zone". Then you can
put the zonefile with the data in that position. Then perform the
nsd-control. And it loads the zone into memory straight away and starts
serving it.
If the zone is transferred from another server, include the request-xfr
in the pattern, and when you add the zone it is then transferred and
service starts.
NSD writes the zone and pattern names to the zone.list file, so that it
remembers the zone has been added when you restart the server. When you
remove it it is removed from memory and service (the zonefile is not
deleted by NSD), and the entry in the zone.list file is deleted by NSD.
You can also edit the zone into the nsd.conf config file (or another
config file included into it), and nsd-control reconfig. The include
statement can take wildcards, eg. include: "zones/*.conf" and that can
be nice if you like to just put a file into the dir and reconfig.
Removal then works by editing nsd.conf to remove the zone and then
reconfig. Or delete the zone.conf file and then reconfig.
Best regards, Wouter
>
> I've used the command 'nsd-control addzone example.com {pattern-name}'
> but it does not do anything except writing that to
> '/var/lib/nsd/zone.list'. What do I have to do when I dynamically want
> to add or remove zones without downtime of the primary nameserver (master)?
>
> Kind regards,
> Kaulkwappe
>
>
> _______________________________________________
> nsd-users mailing list
> nsd-users@NLnetLabs.nl
> https://open.nlnetlabs.nl/mailman/listinfo/nsd-users
>
</pre>
</div>