This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
irc:openbsd:nsd [2020/07/09 14:32] baytuch created |
irc:openbsd:nsd [2020/07/22 09:24] (current) baytuch |
||
---|---|---|---|
Line 29: | Line 29: | ||
#notify: 193.201.116.2 NOKEY | #notify: 193.201.116.2 NOKEY | ||
#provide-xfr: 193.201.116.2 NOKEY | #provide-xfr: 193.201.116.2 NOKEY | ||
+ | </code> | ||
+ | |||
+ | ====== Primary and secondary server ====== | ||
+ | If you need a secondary server to host the zone, you can do this as follows. Add to the block that describes your master zone, records about the secondary zone as in the example: | ||
+ | |||
+ | <code> | ||
+ | zone: | ||
+ | name: "example.net" | ||
+ | zonefile: "master/example.net.zone" | ||
+ | notify: 20.20.20.20 NOKEY | ||
+ | provide-xfr: 20.20.20.20 NOKEY | ||
+ | </code> | ||
+ | |||
+ | Create a new block in the secondary server config file, as in the example: | ||
+ | <code> | ||
+ | zone: | ||
+ | name: "example.net" | ||
+ | zonefile: "slave/example.net.zone" | ||
+ | allow-notify: 10.10.10.10 NOKEY | ||
+ | request-xfr: 10.10.10.10 NOKEY | ||
</code> | </code> | ||
Line 58: | Line 78: | ||
====== Configuration check and start ====== | ====== Configuration check and start ====== | ||
- | Both NSD bring along a tool to check the configuration file before you start or reload the daemon. You should start with NSD: | + | NSD bring along a tool to check the configuration file before you start or reload the daemon: |
<code> | <code> | ||
$ doas nsd-checkconf /var/nsd/etc/nsd.conf | $ doas nsd-checkconf /var/nsd/etc/nsd.conf |