[nsd-users] how does zonefile-write work?

Alexander Varejão frater.alexander at gmail.com
Thu Jul 28 14:10:27 UTC 2022


Hi Dears,

I'm new to NSD and I'm testing it to use in my production environment

I'm confuse how zonefiles-write works.

I created some slave zones in /etc/nsd/nsd.conf.d/

something like that:

  /etc/nsd/nsd.conf.d/foo.bar.conf

In this file I have the following content

---------------------------------------------------------------------------------------------------------
zone:
    # this server is secondary, X.X.X.X is primary.
    name: foo.bar
    zonefile: "00/foo.bar/foo.bar"
    allow-notify: X.X.X.X key
    request-xfr: X.X.X.X  key
---------------------------------------------------------------------------------------------------------


In my /etc/nsd/nsd.conf I have the following configuration

---------------------------------------------------------------------------------------------------------
include: "/etc/nsd/nsd.conf.d/*.conf"

server:
   server-count: 1
   ip-address: XXX.XXX.XXX.XXX
   ip-address: XXX.XXX.XXX.XXX
   ip-address: 127.0.0.1
   do-ip4: yes
   do-ip6: no
   port: 53
   username: nsd
   zonesdir: "/var/lib/nsd/db/"
   database: "/var/lib/nsd/nsd.db"
   logfile: "/var/log/nsd/nsd.log"
   pidfile: "/var/run/nsd/nsd.pid"
   xfrdfile: "/var/lib/nsd/xfrd.state"
   xfrdir: "/tmp"
   hide-version: no
   version: "NSD"
   zonefiles-write: 3600
   rrl-ratelimit: 200
   verbosity: 3

remote-control:
    control-enable: yes

key:
   name: "key"
   algorithm: hmac-md5
   secret: "some key"
---------------------------------------------------------------------------------------------------------

Ok, here's my doubt. The file /var/lib/nsd/db/00/foo.bar/foo.bar would be
automatically created after 3600 seconds or I could be run "nsd-control
write foo.bar" to create it.

does zonefile-write works only to zone updates?

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20220728/9ecbfa02/attachment.htm>


More information about the nsd-users mailing list