We just brought up a new box with FreeBSD 9, bind is already installed, although I can't seem to find the named.reload that I used in 7.x to reload the zone files....
After configuring one of the zone files:
I then created the RNDC key file
I added the following to the named.conf file:
Restarted the server, since I couldn't seem to find a named.reload anywhere so I"m not sure if that's deprecated or what.....but any rate this is the error that showed up in the messages log:
The file is there, not sure why its not loading so any help would be greatly appreciated.
After configuring one of the zone files:
Code:
@ IN SOA ns.webserver.com. dpalme.webserver.com. (
2012080301 ; Serial
3600 ; Refresh
3600 ; Retry
3600 ; Expire
3600 ) ; Minimum
IN NS ns.webserver.com.
IN NS ns1.webserver.com.
mail.webserver.com. IN A 108.61.47.126
www.wevserver.com. IN CNAME webserver.com.
ns.webserver.com. IN A 108.61.47.126
ns1.webserver.com. IN A 108.61.47.126
webserver.com. IN A 108.61.47.126
webserver.com. IN MX 10 mail.webserver.com.
webmail.webserver.com. IN CNAME webserver.com.
I then created the RNDC key file
I added the following to the named.conf file:
Code:
zone "webserver.com" {
type master;
file "master/webserver.db";
};
# Use with the following in named.conf, adjusting the allow list as needed:
key "rndc-key" {
algorithm hmac-md5;
secret "*removed*";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
Restarted the server, since I couldn't seem to find a named.reload anywhere so I"m not sure if that's deprecated or what.....but any rate this is the error that showed up in the messages log:
Code:
Aug 3 03:04:34 www named[1711]: starting BIND 9.8.1-P1 -t /var/named -u bind
Aug 3 03:04:34 www named[1711]: built with '--prefix=/usr' '--infodir=/usr/share/info' '--man
dir=/usr/share/man' '--enable-threads' '--enable-getifaddrs' '--disable-linux-caps' '--with-op
enssl=/usr' '--with-randomdev=/dev/random' '--without-idn' '--without-libxml2'
Aug 3 03:04:34 www named[1711]: command channel listening on 127.0.0.1#953
Aug 3 03:04:34 www named[1711]: zone webserver.com/IN: loading from master file master/webserver.db failed: file not found
Aug 3 03:04:34 www named[1711]: zone webserver.com/IN: not loaded due to errors.
Aug 3 03:04:34 www named[1711]: managed-keys-zone ./IN: loading from master file managed-keys
.bind failed: file not found
Aug 3 03:04:34 www named[1711]: running
Aug 3 03:04:35 www ntpd[1871]: ntpd 4.2.4p5-a (1)
Aug 3 03:04:35 www kernel: .
Aug 3 03:04:48 www ntpd[1872]: time correction of -14422 seconds exceeds sanity limit (1000);
set clock manually to the correct UTC time.
The file is there, not sure why its not loading so any help would be greatly appreciated.