My named doesn't bind to my private IP and only binds to localhost.

starting BIND 9.3.2-P1
command channel listening on 127.0.0.1#953
command channel listening on ::1#953

I already have the listen-on option in /var/named/etc/named.conf file
pointed to my private IP.

options {
listen-on { 192.168.25.5; };
allow-recursion { clients; };
};

If I do a "named -c /var/named/etc/named.conf" it gives error -

none:0: open: /var/named/etc/named.conf: file not found
loading configuration: file not found

But the file is there and all files under /var/named are root:named.

My "/var/named/etc/named.conf" symlinks to /etc/named.conf. And if I
start bind typing "named" it starts on 127.0.0.1 by reading
/etc/named.conf by default.

Also, if I do "named -c /etc/named.conf -g" it actually listens on my
private IP along with localhost. Netstat output -

192.168.25.5.domain *.*

Any help would be appreciated.

Reply via email to