jjay
06-25-2004, 04:29 PM
Hi all,
I have two nameservers A and B, serving-up mydomain.com and mydomain.net, both
on the same machine running under named. If I go to dnsreport.com and run a check,
it always gives me a "Reverse DNS entries for MX records" -- FAIL, but here's the
weird part: it's always only ONE of the nameservers, and it'll swap. Sometimes it
says A failed, and other times it says B failed, like BIND 9 can only serve-up one
reverse lookup at a time.
Our network is 1.2.3.3/28 where 1.2.3.3 is our router and .4 and .5 is the
same physical machine, serving-up both .4 and .5.
When I do a reverse lookup FROM WITHIN MY LAN, even telling it to
use MY DNS SERVER (192.168.0.1), I get a response from my ISP. I
don't understand why:
grampus:/var/lib/named/master # dig @192.168.0.1 -x 1.2.3.4
; <<>> DiG 9.2.3 <<>> @192.168.0.1 -x 1.2.3.4
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 40971
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;4.3.2.1.in-addr.arpa. IN PTR
;; AUTHORITY SECTION:
3.2.1.in-addr.arpa. 2592 IN SOA ns1.myisp.net. hostmaster.ns1.myisp.net. 2000010726 7200 3600 3600000 86400
;; Query time: 7 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Fri Jun 25 15:47:56 2004
;; MSG SIZE rcvd: 107
I don't see any errors in /var/log/messages when I restart named.
This new server setup has been running for about 2 hours now. Do I
need to be more patient for other caches to be updated, or is there an
error on my or my ISP's part (BOTH is always an option :) )??
This is my named.conf file:
options {
directory "/var/lib/named";
dump-file "/var/log/named_dump.db";
statistics-file "/var/log/named.stats";
query-source address * port 53;
transfer-source * port 53;
notify-source * port 53;
notify no;
};
logging {
channel syslog_queries {
syslog user;
severity debug;
};
category queries { syslog_queries; };
channel syslog_errors {
syslog user;
severity error;
};
category default { syslog_errors; };
category lame-servers { null; };
};
view "internal" {
match-clients { 127.0.0.1; 192.168.0.0/24; };
zone "." in {
type hint;
file "root.hint";
};
zone "localhost" in {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};
zone "mydomain.com" {
type master;
file "master/private.mydomain.com.zone";
};
zone "mydomain.net" in {
type master;
file "master/private.mydomain.net.zone";
};
zone "0.168.192.in-addr.arpa" in {
type master;
file "master/0.168.192.in-addr.arpa.zone";
};
}; //end view internal
view "external" {
match-clients { any; };
zone "." in {
type hint;
file "root.hint";
};
zone "mydomain.net" in {
type master;
file "master/mydomain.net.zone";
};
zone "mydomain.com" in {
type master;
file "master/mydomain.com.zone";
};
zone "28/3.3.2.1.in-addr.arpa" in {
type master;
file "master/3.2.1.in-addr.arpa.zone";
};
}; //end view external
This is the mydomain.com.zone file:
$TTL 2D
mydomain.com. IN SOA ns1.mydomain.net. root.mydomain.com. (
2004062503 ; serial
2H ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum
IN NS ns1.mydomain.net.
IN NS ns2.mydomain.net.
mydomain.com. IN MX 10 grampus
mydomain.com. IN A 1.2.3.4
mydomain.com. IN A 1.2.3.5
ns1.mydomain.net. IN A 1.2.3.4
ns2.mydomain.net. IN A 1.2.3.5
grampus IN A 1.2.3.4
grampus IN A 1.2.3.5
www IN CNAME grampus
This is the mydomain.net.zone file:
$TTL 2D
mydomain.net. IN SOA ns1.mydomain.net. root.mydomain.net. (
2004062401 ; serial
2H ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum
IN NS ns1.mydomain.net.
IN NS ns2.mydomain.net.
mydomain.net. IN MX 10 grampus
ns1.mydomain.net. IN A 1.2.3.4
ns2.mydomain.net. IN A 1.2.3.5
grampus IN A 1.2.3.4
grampus IN A 1.2.3.5
www IN CNAME grampus
This is the reverse file:
$TTL 2D
28/3.3.2.1.in-addr.arpa. IN SOA ns1.mydomain.net. root.mydomain.net. (
2004062505 ; serial
2H ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum
IN NS ns1.mydomain.net.
4 IN PTR ns1.mydomain.net.
5 IN PTR ns2.mydomain.net.
Thanks for any help.
I have two nameservers A and B, serving-up mydomain.com and mydomain.net, both
on the same machine running under named. If I go to dnsreport.com and run a check,
it always gives me a "Reverse DNS entries for MX records" -- FAIL, but here's the
weird part: it's always only ONE of the nameservers, and it'll swap. Sometimes it
says A failed, and other times it says B failed, like BIND 9 can only serve-up one
reverse lookup at a time.
Our network is 1.2.3.3/28 where 1.2.3.3 is our router and .4 and .5 is the
same physical machine, serving-up both .4 and .5.
When I do a reverse lookup FROM WITHIN MY LAN, even telling it to
use MY DNS SERVER (192.168.0.1), I get a response from my ISP. I
don't understand why:
grampus:/var/lib/named/master # dig @192.168.0.1 -x 1.2.3.4
; <<>> DiG 9.2.3 <<>> @192.168.0.1 -x 1.2.3.4
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 40971
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;4.3.2.1.in-addr.arpa. IN PTR
;; AUTHORITY SECTION:
3.2.1.in-addr.arpa. 2592 IN SOA ns1.myisp.net. hostmaster.ns1.myisp.net. 2000010726 7200 3600 3600000 86400
;; Query time: 7 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Fri Jun 25 15:47:56 2004
;; MSG SIZE rcvd: 107
I don't see any errors in /var/log/messages when I restart named.
This new server setup has been running for about 2 hours now. Do I
need to be more patient for other caches to be updated, or is there an
error on my or my ISP's part (BOTH is always an option :) )??
This is my named.conf file:
options {
directory "/var/lib/named";
dump-file "/var/log/named_dump.db";
statistics-file "/var/log/named.stats";
query-source address * port 53;
transfer-source * port 53;
notify-source * port 53;
notify no;
};
logging {
channel syslog_queries {
syslog user;
severity debug;
};
category queries { syslog_queries; };
channel syslog_errors {
syslog user;
severity error;
};
category default { syslog_errors; };
category lame-servers { null; };
};
view "internal" {
match-clients { 127.0.0.1; 192.168.0.0/24; };
zone "." in {
type hint;
file "root.hint";
};
zone "localhost" in {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};
zone "mydomain.com" {
type master;
file "master/private.mydomain.com.zone";
};
zone "mydomain.net" in {
type master;
file "master/private.mydomain.net.zone";
};
zone "0.168.192.in-addr.arpa" in {
type master;
file "master/0.168.192.in-addr.arpa.zone";
};
}; //end view internal
view "external" {
match-clients { any; };
zone "." in {
type hint;
file "root.hint";
};
zone "mydomain.net" in {
type master;
file "master/mydomain.net.zone";
};
zone "mydomain.com" in {
type master;
file "master/mydomain.com.zone";
};
zone "28/3.3.2.1.in-addr.arpa" in {
type master;
file "master/3.2.1.in-addr.arpa.zone";
};
}; //end view external
This is the mydomain.com.zone file:
$TTL 2D
mydomain.com. IN SOA ns1.mydomain.net. root.mydomain.com. (
2004062503 ; serial
2H ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum
IN NS ns1.mydomain.net.
IN NS ns2.mydomain.net.
mydomain.com. IN MX 10 grampus
mydomain.com. IN A 1.2.3.4
mydomain.com. IN A 1.2.3.5
ns1.mydomain.net. IN A 1.2.3.4
ns2.mydomain.net. IN A 1.2.3.5
grampus IN A 1.2.3.4
grampus IN A 1.2.3.5
www IN CNAME grampus
This is the mydomain.net.zone file:
$TTL 2D
mydomain.net. IN SOA ns1.mydomain.net. root.mydomain.net. (
2004062401 ; serial
2H ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum
IN NS ns1.mydomain.net.
IN NS ns2.mydomain.net.
mydomain.net. IN MX 10 grampus
ns1.mydomain.net. IN A 1.2.3.4
ns2.mydomain.net. IN A 1.2.3.5
grampus IN A 1.2.3.4
grampus IN A 1.2.3.5
www IN CNAME grampus
This is the reverse file:
$TTL 2D
28/3.3.2.1.in-addr.arpa. IN SOA ns1.mydomain.net. root.mydomain.net. (
2004062505 ; serial
2H ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum
IN NS ns1.mydomain.net.
4 IN PTR ns1.mydomain.net.
5 IN PTR ns2.mydomain.net.
Thanks for any help.