Hi,
I have export my zone line to master.conf and slave.conf
The can I include this File to the nsd.conf?
Example nsd.conf
server:
ip-address: 1.2.3.4
debug-mode: no
ip4-only: yes
database: "/var/db/nsd.database"
logfile: "/var/log/nsd.log"
pidfile: "/var/run/nsd.pid"
include master.conf
include slave.conf
Example master.conf
zone:
name: "example.net"
zonefile: "example.net.signed.zone"
provide-xfr: 169.192.85.0/24 NOKEY
Example slave.conf
zone:
name: "example2.net"
zonefile: "example2.net.signed.zone"
request-xfr: 169.192.85.0/24 NOKEY
Greet
Sebastian S.
PS: Sorry for my bad english
Wouter
September 12, 2006, 7:45am
2
Hi Sebastian,
Yes you can do that, your nsd.conf has one mistake, you use 'include'
but NSD needs 'include:'.
So nsd.conf:
# same ...
include: "master.conf"
include: "slave.conf"
Your master.conf (is OK):
zone:
name: "example.net"
zonefile: "example.net.signed.zone"
provide-xfr: 169.192.85.0/24 NOKEY
Your slave.conf has a problem.
The request-xfr needs one address to connect to.
The ip-address of the master server. So:
zone:
name: "example2.net"
zonefile: "example2.net.signed.zone"
request-xfr: 169.192.85.33 NOKEY
You cannot give a subnet for request-xfr. The slave is not going to scan
a whole network looking for the master.
At the moment the maximum nesting of include: directives is 10
(MAXINCLUDES define), so for include: files that include: files that
include: files that include: ... 10 deep.
No problems with the english,
Wouter
Sebastian wrote: