Hi all, I'm setting up a DNS server on CentOS 5.2, but can't get it to listen to the outside IP address for DNS queries. There's no firewall installed yet. Here's the BIND config options: options { /* make named use port 53 for the source of all queries, to allow * firewalls to block all ports except 53: */ query-source port 53; // Put files that named is allowed to write in the data/ directory: directory "/var/named"; // the default dump-file "data/cache_dump.db"; statistics-file "data/named_stats.txt"; /* memstatistics-file "data/named_mem_stats.txt"; */ }; Yet, it only listes on 127.0.0.1 netstat -tulpn | grep :53 Stopping named: [ OK ] Starting named: [ OK ] tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 28979/named tcp 0 0 ::1:53 :::* LISTEN 28979/named udp 0 0 127.0.0.1:53 0.0.0.0:* 28979/named udp 0 0 ::1:53 :::* 28979/named What am I missing? -- Kind Regards Rudi Ahlers
From: Rudi Ahlers <rudiahlers at gmail.com>> I'm setting up a DNS server on CentOS 5.2, but can't get it to listen > to the outside IP address for DNS queries. There's no firewall > installed yet. > > Here's the BIND config options: > > options { > /* make named use port 53 for the source of all queries, to allow > * firewalls to block all ports except 53: > */ > > query-source port 53; > > // Put files that named is allowed to write in the data/ directory: > directory "/var/named"; // the default > dump-file "data/cache_dump.db"; > statistics-file "data/named_stats.txt"; > /* memstatistics-file "data/named_mem_stats.txt"; */ > }; > > Yet, it only listes on 127.0.0.1 > > What am I missing?I think, you need to tell him on which IP to listen to... See 'listen-on' in named.conf man page. JD
Rudi Ahlers wrote:> Hi all, > > I'm setting up a DNS server on CentOS 5.2, but can't get it to listen > to the outside IP address for DNS queries. There's no firewall > installed yet. > > Here's the BIND config options:This might depend on the version of bind that you're using. I don't have a specific line in my centos5.2's named.conf to request it to listen on particular addresses, but I do remember having to force it in the past: listen-on-v6 { none; }; listen-on { 127.0.0.1; 192.168.0.1; public.ip.addr.ess; } -- Duncan Hutty