i am trying to set up a simple domain server on redhat 9.0. my domain is substantis.com and my server is ns1.substantis.com. which also serves as mail and
www. it is located behind my linux firewall/router on a DMZ. My secondary server is located outside my domain. I can't understand how to trouble shoot the responses i get from DIG to solve my problem.
three dig examples
using dig i get the following results
1. [root@ns1 etc]# dig @ns1.substantis.com substantis.com
dig: Couldn't find server 'ns1.substantis.com': Name or service not known.
2 [root@ns1 etc]# dig substantis.com
. ; <<>> DiG 9.2.1 <<>> substantis.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 6642
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;substantis.com. IN A
;; Query time: 45 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Oct 15 00:13:07 2003
;; MSG SIZE rcvd: 32
3. [root@ns1 etc]# dig yahoo.com
; <<>> DiG 9.2.1 <<>> yahoo.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30200
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 0
;; QUESTION SECTION:
;yahoo.com. IN A
;; ANSWER SECTION:
yahoo.com. 1618 IN A 66.218.71.198
;; AUTHORITY SECTION:
OMITTED BY EDITOR
;; Query time: 46 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Oct 15 00:14:56 2003
;; MSG SIZE rcvd: 254
I have the named.conf file and associated zone files in /var/named (named.ca named.local named.rev named.substantis.com)
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 "0.0.127.in-addr.arpa" {
type master;
file "named.local";
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";
};
"named.conf" 36L, 887C
named.substantis.com
$TTL 86400
@ IN SOA substantis.com. something.hotmail.com. (
2003101404 ;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 ns1.speakeasy.net.
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 10.1.10.2 ; mail to name server
www IN A 10.1.10.2 ; apache to name server
www IN CNAME ns1 ; apache alias
/var/named/named.substantis.com" 16L, 909C
named.rev
$TTL 604800
@ IN SOA 149.92.66.in-addr.arpa. something.hotmail.com. (
2003101405 ;serial number
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 ns1.speakeasy.net.
1 IN PTR smoothwall.substantis.com.
2 IN PTR mail.substantis.com.
3 IN PTR
www.substantis.com.
4 IN PTR ns1.substantis.com.
"/var/named/named.rev" 13L, 656C
[root@ns1 named]# tail /var/log/messages
Oct 14 23:49:42 ns1 named[7944]: no IPv6 interfaces found
Oct 14 23:49:42 ns1 named[7944]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 14 23:49:42 ns1 named[7944]: listening on IPv4 interface eth0, 10.1.10.2#53
Oct 14 23:49:42 ns1 named[7944]: command channel listening on 127.0.0.1#953
Oct 14 23:49:42 ns1 named[7944]: zone 0.0.127.in-addr.arpa/IN: loaded serial 2003101400
Oct 14 23:49:42 ns1 named[7944]: zone 149.92.66.in-addr.arpa/IN: loaded serial 2003101405
Oct 14 23:49:42 ns1 named[7944]: dns_master_load: named.substantis.com:16:
www.substantis.com: CNAME and other data
Oct 14 23:49:42 ns1 named[7944]: zone substantis.com/IN: loading master file named.substantis.com: CNAME and other data
Oct 14 23:49:42 ns1 named[7944]: running
Oct 14 23:49:42 ns1 named[7944]: zone 149.92.66.in-addr.arpa/IN: sending notifies (serial 2003101405)
[root@ns1 named]#