named always binds to "*"

Andy Greenwood greenwood.andy at gmail.com
Fri May 19 05:32:21 PDT 2006


I'm trying to set up my first jail, and I've got the below named.conf.
However, even with the query-source line below, it always binds to the
wildcard address! Anyone seen this behavior before and what can I do
to fix it?

// Specify the subnets we're going to serve
acl homenet { 192.168.0.0/16; } ;
options {
     directory "/etc/namedb";
     allow-query { homenet; };
     listen-on { 192.168.1.1; };
     query-source address 192.168.1.1;
};
// Provide reverse mapping for the loopback IP
zone "0.0.127.in-addr.arpa" {
     type master;
     file "localhost.rev";
     notify no;
};

When I execute named -u bind -fg I get this
[root at behemoth ~]$ named -u bind -fg
19-May-2006 08:28:11.570 starting BIND 9.3.1 -u bind -fg
19-May-2006 08:28:11.583 loading configuration from '/etc/namedb/named.conf'
19-May-2006 08:28:11.586 listening on IPv4 interface dc1, 192.168.1.1#53
19-May-2006 08:28:11.591 none:0: open: /etc/namedb/rndc.key: file not found
19-May-2006 08:28:11.592 couldn't add command channel 127.0.0.1#953:
file not found
19-May-2006 08:28:11.592 none:0: open: /etc/namedb/rndc.key: file not found
19-May-2006 08:28:11.592 couldn't add command channel ::1#953: file not found
19-May-2006 08:28:11.592 ignoring config file logging statement due to -g option
19-May-2006 08:28:11.594 zone 0.0.127.in-addr.arpa/IN: loading master
file localhost.rev: file not found
19-May-2006 08:28:11.596 running


More information about the freebsd-questions mailing list