rioguia
10-18-2003, 03:10 PM
My Primary Name Server on my home network doesn't recognize the Domain Name for which it is master. i am running redhat 9.0., my domain is substantis.com , and my server is ns1.substantis.com. which also serves as mail and www (IP 66.92.149.1960). it is located behind my linux firewall/router on a DMZ. My secondary server is run by my ISP who is also handling the reverse lookup (no reverse delegation for my IP). I can't understand how to trouble shoot the responses i get from DIG to solve my problem. By the way, when I ssh to an external PC and do a dig on NS1.substantis.com, it doesn't recognize substantis.com but it will resolve its IP address and any valid domain.
[root@ns1 root]# dig substantis.com
; <<>> DiG 9.2.1 <<>> substantis.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 34989
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;substantis.com. IN A
;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Oct 16 06:51:56 2003
;; MSG SIZE rcvd: 32
[root@ns1 root]# dig 66.92.149.196
; <<>> DiG 9.2.1 <<>> 66.92.149.196
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46337
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 0
;; QUESTION SECTION:
;66.92.149.196. IN A
;; ANSWER SECTION:
66.92.149.196. 604800 IN A 66.92.149.196
;; AUTHORITY SECTION:
. 518379 IN NS K.ROOT-SERVERS.NET.
. etc.
;; Query time: 68 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Oct 16 06:52:07 2003
;; MSG SIZE rcvd: 258
Here are my files:
NAMED.CONF
// generated by named-bootconf.pl
options {
directory "/var/named" ;
forwarders {
66.92.159.2;
216.231.41.2;
};
// If there is a firewall between you and nameservers you want
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 uses an unprivileged
// port by default.
query-source address * port 53;
};
zone "." {
type hint;
file "named.ca";
};
zone "named.local" {
type master;
file "named.local";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local.rev";
allow-update { none; };
};
// our primary information
zone "substantis.com" {
type master;
file "named.substantis.com";
allow-update {none;};
};
zone "149.92.66.in-addr.arpa" {
type master;
file "named.rev";
};
"/etc/named.conf" 41L, 1004C
NAMED.LOCAL
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
NAMED.LOCAL.REV
$TTL 172800
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
3h ; Refresh
15 ; Retry
1w ; Expire
3h ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
named.substantis.com
$TTL 86400
@ IN SOA substantis.com. maworden.hotmail.com. (
2003101709 ;serial number
1800 ;temporary refresh every 10800 for 3 hours
1800 ;retry every 30 minutes
1209600 ;expire in 2 weeks
604800 ) ;minimum 1 week
IN NS ns1.substantis.com.
IN NS ns2.speakeasy.net.
IN NS ns1.speakeasy.net.
IN A 66.92.149.196 ; suggested by poster
IN MX 10 ns1.substantis.com.
localhost IN A 127.0.0.1 ; resolve localhost
smoothwall IN A 10.1.1.1 ; internet gateway
ns1 IN A 66.92.149.196 ; name server
mail IN A 66.92.149.196 ; mail to name server
www IN A 66.92.149.196 ; apache to name server
www IN CNAME ns1 ; apache alias
149.92.66.IN.-ADDR.ARPA
$TTL 604800
@ IN SOA 149.92.66.in-addr.arpa. maworden.hotmail.com. (
2003101810
10800 ;refresh every 10800 for 3 hours
1800 ;retry every 30 minutes
1209600 ;expire in 2 weeks
604800 ) ;minimum 1 week
IN NS ns1.substantis.com.
IN NS ns2.speakeasy.net.
IN NS ns1.speakeasy.net.
196 IN PTR smoothwall.substantis.com.
196 IN PTR mail.substantis.com.
196 IN PTR www.substantis.com.
196 IN PTR ns1.substantis.com.
[root@ns1 root]# dig substantis.com
; <<>> DiG 9.2.1 <<>> substantis.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 34989
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;substantis.com. IN A
;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Oct 16 06:51:56 2003
;; MSG SIZE rcvd: 32
[root@ns1 root]# dig 66.92.149.196
; <<>> DiG 9.2.1 <<>> 66.92.149.196
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46337
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 0
;; QUESTION SECTION:
;66.92.149.196. IN A
;; ANSWER SECTION:
66.92.149.196. 604800 IN A 66.92.149.196
;; AUTHORITY SECTION:
. 518379 IN NS K.ROOT-SERVERS.NET.
. etc.
;; Query time: 68 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Oct 16 06:52:07 2003
;; MSG SIZE rcvd: 258
Here are my files:
NAMED.CONF
// generated by named-bootconf.pl
options {
directory "/var/named" ;
forwarders {
66.92.159.2;
216.231.41.2;
};
// If there is a firewall between you and nameservers you want
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 uses an unprivileged
// port by default.
query-source address * port 53;
};
zone "." {
type hint;
file "named.ca";
};
zone "named.local" {
type master;
file "named.local";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local.rev";
allow-update { none; };
};
// our primary information
zone "substantis.com" {
type master;
file "named.substantis.com";
allow-update {none;};
};
zone "149.92.66.in-addr.arpa" {
type master;
file "named.rev";
};
"/etc/named.conf" 41L, 1004C
NAMED.LOCAL
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
NAMED.LOCAL.REV
$TTL 172800
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
3h ; Refresh
15 ; Retry
1w ; Expire
3h ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
named.substantis.com
$TTL 86400
@ IN SOA substantis.com. maworden.hotmail.com. (
2003101709 ;serial number
1800 ;temporary refresh every 10800 for 3 hours
1800 ;retry every 30 minutes
1209600 ;expire in 2 weeks
604800 ) ;minimum 1 week
IN NS ns1.substantis.com.
IN NS ns2.speakeasy.net.
IN NS ns1.speakeasy.net.
IN A 66.92.149.196 ; suggested by poster
IN MX 10 ns1.substantis.com.
localhost IN A 127.0.0.1 ; resolve localhost
smoothwall IN A 10.1.1.1 ; internet gateway
ns1 IN A 66.92.149.196 ; name server
mail IN A 66.92.149.196 ; mail to name server
www IN A 66.92.149.196 ; apache to name server
www IN CNAME ns1 ; apache alias
149.92.66.IN.-ADDR.ARPA
$TTL 604800
@ IN SOA 149.92.66.in-addr.arpa. maworden.hotmail.com. (
2003101810
10800 ;refresh every 10800 for 3 hours
1800 ;retry every 30 minutes
1209600 ;expire in 2 weeks
604800 ) ;minimum 1 week
IN NS ns1.substantis.com.
IN NS ns2.speakeasy.net.
IN NS ns1.speakeasy.net.
196 IN PTR smoothwall.substantis.com.
196 IN PTR mail.substantis.com.
196 IN PTR www.substantis.com.
196 IN PTR ns1.substantis.com.