Browse Source

Switch example NSD config to splitting master and slave zones into different

subdirectories (/var/nsd/zones/{master,slave}) and create these in mtree.
Nearly everybody that uses NSD for slave zones that I talked to already has
this layout. Bikesh^Wdiscussed with ajacoutot florian millert and others.
ok ajacoutot@ florian@ phessler@ claudio@ jung@
OPENBSD_5_8
sthen 9 years ago
parent
commit
0c678b02c3
2 changed files with 10 additions and 6 deletions
  1. +5
    -1
      src/etc/mtree/4.4BSD.dist
  2. +5
    -5
      src/etc/nsd.conf

+ 5
- 1
src/etc/mtree/4.4BSD.dist View File

@ -1,4 +1,4 @@
# $OpenBSD: 4.4BSD.dist,v 1.269 2014/12/22 15:39:28 tedu Exp $
# $OpenBSD: 4.4BSD.dist,v 1.270 2015/04/12 11:49:39 sthen Exp $
/set type=dir uname=root gname=wheel mode=0755 /set type=dir uname=root gname=wheel mode=0755
@ -738,6 +738,10 @@ var
# ./var/nsd/zones # ./var/nsd/zones
zones uname=root gname=wheel mode=0755 zones uname=root gname=wheel mode=0755
master uname=root gname=wheel mode=0755
..
slave uname=root gname=_nsd mode=0775
..
.. ..
.. ..


+ 5
- 5
src/etc/nsd.conf View File

@ -1,4 +1,4 @@
# $OpenBSD: nsd.conf,v 1.10 2015/03/10 22:16:30 millert Exp $
# $OpenBSD: nsd.conf,v 1.11 2015/04/12 11:49:39 sthen Exp $
server: server:
hide-version: yes hide-version: yes
@ -22,14 +22,14 @@ remote-control:
## master zone example ## master zone example
#zone: #zone:
# name: "example.com" # name: "example.com"
# zonefile: "example.com"
# zonefile: "master/example.com"
# notify: 192.0.2.1 NOKEY # notify: 192.0.2.1 NOKEY
# provide-xfr: 192.0.2.1 NOKEY # provide-xfr: 192.0.2.1 NOKEY
## slave zone example ## slave zone example
#zone: #zone:
# name: "example.net" # name: "example.net"
# zonefile: "example.net"
# zonefile: "slave/example.net"
# allow-notify: 192.0.2.2 tsig1.example.com. # allow-notify: 192.0.2.2 tsig1.example.com.
# request-xfr: 192.0.2.2 tsig1.example.com. # request-xfr: 192.0.2.2 tsig1.example.com.
@ -38,7 +38,7 @@ remote-control:
## %1 - first character of zone name, %2 second, ## %3 third. ## %1 - first character of zone name, %2 second, ## %3 third.
## %z - topleveldomain label of zone, %y, %x next labels in name. ## %z - topleveldomain label of zone, %y, %x next labels in name.
#pattern: #pattern:
# name: "primary"
# zonefile: "%s.zone"
# name: "master"
# zonefile: "master/%s.zone"
# notify: 192.0.2.1 NOKEY # notify: 192.0.2.1 NOKEY
# provide-xfr: 192.0.2.1 NOKEY # provide-xfr: 192.0.2.1 NOKEY

Loading…
Cancel
Save