I'm running RHEL 5, with the BIND server that comes with it.
I used the same settings as I was using on a previous server, but now since changing the DNS servers on the root servers, I can't resolve my hostnames anymore.
It works fine if I look up the name from the server (using nslookup; server localhost;
www.keupon.ca) but not if I set the query type to NS, so I guess my server doesn't recognize itself as the SOA.
Also, if I try it from another box, it fails.
Relevant lines from dig +trace:
Code:
keupon.ca. 86400 IN NS ns2.keupon.ca.
keupon.ca. 86400 IN NS ns1.keupon.ca.
;; Received 99 bytes from 192.228.27.11#53(ca01.cira.ca) in 74 ms
dig: couldn't get address for 'ns2.keupon.ca': failure
I would really appreciate any help I can get. Thanks
Pat
Edit: errr... I dunno why I said that, because a query of type NS gives me the right name servers if I use the localhost.
Edit 2: Here's some clarification about my setup.
I'm using an IPTables firewall managed by APF. Port 53 is open in TCP and UDP. NMAP sees it as open as well.
BIND is chrooted, here is my /etc/named.conf (minus the logging settings):
Code:
options {
directory "/etc/namedb";
pid-file "/var/run/named.pid";
statistics-file "/var/run/named.stats";
allow-query { any; }; // This is the default
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
include "/etc/rndc.key";
zone "." {
type hint;
file "root.hints";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "pz/127.0.0";
};
zone "keupon.ca" in {
type master;
file "pz/keupon.ca";
};
zone "cellsoft-international.com" in {
type master;
file "pz/cellsoft-international.com";
};
Yet for some reason all outside queries fail. Very odd.