Re: How to dynamically add and remove zones?
"W.C.A. Wijngaards" <[email protected]>
| Newsgroups | gmane.network.dns.nsd.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Kaulkwappe, On 26/06/18 10:32, [email protected] 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 > [email protected] > https://open.nlnetlabs.nl/mailman/listinfo/nsd-users > _______________________________________________ nsd-users mailing list [email protected] https://open.nlnetlabs.nl/mailman/listinfo/nsd-users
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE7fqj8spObrBWga+On28cLX4EX40FAlsx/ZkACgkQn28cLX4E X42OlhAAn9zN5xBUa422+G4gVYt/DN38eS5F7lH/1pusAuTpU3j0Og9vJo7DBXRZ f9QLZ+znUcw+BSPZYwsO+NZLPlG77h3TGhqF0DqqZ47NNi3wa7kVW01dTxNuah/A J/W9NOF0xjf9hbN3pV2tedIvNakyBDLqoigJ24gHR//6cVazrlnfonpSjJkoD0PA 8q4lAfc0CI2U6aVnL08F/MNw3SJD1utm+n6qHM/GfB9k1FYUz6c0nIzMOeb0PWiZ fj+zFLIniloBOhRFfTyXKUgiiT0wMgqZ7R8m1wdRaQdwc0fB3rfpYylpdCEmRjQV mv/jZdlRiK1aBnJUmqp0r7W8KaL/fh4zF3QvzUIJZp532DPgw+EK5Ji68/tRCTk5 0V9eJc77OroZ/na9r7FPdKy8Dsbcxb5WLdRROiutqXzjSutTxPcn8yqXumVKC7Ke YFSU+aEDlLszYTPAbV9m/agOwR3hrn3DKbw9VUcrSiulyHcmMtiu2VKMn7nA4rkV Z5HXAg5w+ySSdKuvHHZJ5Rp0zsZENEE3ZOfg02k8kdI1BXHIn/3PvlVZlo3QIEuX bz3ofKsatADPyFEqyoYSGA6b0Oy2xIPWBD6KYe9ajdiy4VDTldg87b5nQEwcpVpS T1vnUxtaHSNIfCkwb/4kHu1ej3k6xHWwNA1pDkAdrPhDwUxA+Zg= =KK10 -----END PGP SIGNATURE-----