Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 May 2006 08:32:18 -0400
From:      "Andy Greenwood" <greenwood.andy@gmail.com>
To:        "FreeBSD Questions" <freebsd-questions@freebsd.org>
Subject:   named always binds to "*"
Message-ID:  <3ee9ca710605190532p33836b63y3f6a8639052d64b8@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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@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 fou=
nd
19-May-2006 08:28:11.592 ignoring config file logging statement due to -g o=
ption
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ee9ca710605190532p33836b63y3f6a8639052d64b8>