dns configuration help needed

Scott Howell showell at n3byy.yi.org
Sun Sep 24 23:50:15 UTC 2000


Ok, many folks have been extremely helpful. I appreciate every bit of
help, but yet things just aren't quite straight.

I am wondering if there's just something else I am missing here.

I am happy to rtfm, but after doing this and with the help, I am either
still quite confused or there's yet something issing.

I'll post all the relavent info and see if someone could still find a
problem I'm missing.

This is the most frustrating step in my education thus far and I'm loosing
what little hair I have.<G>

tnx to all.

First here is my hosts file.
First let me state that currently my n3byy domain is being done through
yi.org, but I've registered lrxms.net, it has been pointed to ns.lrxms.net
and I'll have my ISP Speakeasy do secondary.
I mention this because I don't know if the yi.org domain is part of the
problem at all so I mention it.
 #
# hosts		This file describes a number of hostname-to-address
#		mappings for the TCP/IP subsystem.  It is mostly
#		used at boot time, when no name servers are running.
#		On small systems, this file can be used instead of a

# For loopbacking.
127.0.0.1	localhost
216.254.20.117	 	n3byy.yi.org n3byy
192.168.1.1		n3byy.yi.org  n3byy
192.168.1.10		magnum  magnum
192.168.1.11		lka  lka
192.168.1.12		mscrash  mscrash
192.168.1.100		netups   netups
# End of hosts.

Next is my named.conf file
#  // Config file for caching only name server

  options {
directory "/var/named";
dump-file "/usr/tmp/named_dump.db"
check-name master warn;
query-source port 53;
;

zone "." {
type hint;
file "db.cache";
};

zone "0.0.127.in-addr.arpa" { 
type master;
file "pz/local";
};

zone "lrxms.net" {
notify no;
type master; 
file "pz/lrxms";
};

zone "20.254.216.in-addr.arpa" {
notify no;
type master;
file "pz/216.254.20.117";
};


Here is the lrxms file located in /var/named/pz:
;zone for lrxms.net
;
@   IN  SOA  ns.lrxms.net. hostmaster.lrxms.net. (
2000092401       ; Serial
8H      ; Refresh after 8 hours
2H      ; Retry 2 hour
1W      ; Expire after 1 week
1D )     ; Minimum TTL of 1 day
 IN NS ns.lrxms.net.      
;
localhost.   IN A    127.0.0.1
ns   IN A    216.254.20.117
n3byy.lrxms.net.    IN    A    216.254.20.117
mail   IN   a   216.254.20.117
pop   IN   A   216.254.20.117
ftp   IN   A   216.254.20.117
www   IN   A   216.254.20.117
;
;  aliases
;
;wh.lrxms.net.   IN CNAME     lrxms.net.
;wh216.lrxms.net.   IN A     lrxms.net.
;
lrxms.net.   IN   MX   10   lrxms.net.
lrxms.net.   IN   MX   20   lrxms.net.

Now the local file:

; local file for lrxms.net
;
@ SOA localhost.  hostmaster.localhost. (
2000092401 ; serial,today's date + today's serial
8H  ;;refresh 8 hours
2H  ; retry 2 hour
1W  ; expire 1 week
1D ) ;minimum TTL 1 day
;
 IN NS   ns.lrxms.net. ; init address of name server
1  IN   PTR   localhost.

Lastly, the 216.254.20..117 file:
; db file for 216.254.20.117
;
@ IN SOA ns.lrxms.net.  hostmaster.lrxms.net. (
2000092401 ; serial,today's date + today's serial
8H  ; refresh 8 hours
2H  ; retry 2 hour
1W  ; expire 1 week
1D ) ;minimum TTL 1 day
;
 IN NS ns.lrxms.net. ;name server
117  IN  PTR  n3byy.lrxms.net.

Here is my resolve.conf file
search ns.lrxms.net
search speakeasy.org
nameserver 127.0.0.1
nameserver 216.254.20.117
nameserver 216.231.41.22
nameserver 216.231.41.2

Now here is what happens if I comment out references to speakeasy and run
nslookup and look for localhost for starters and then speakeasy.net


*** localhost can't find localhost: Server failed
> speakeasy.net
Server:  localhost
Address:  127.0.0.1

*** localhost can't find speakeasy.net: Non-existent host/domain
>

Here is the named_dump.db file:
; Dumped at Sun Sep 24 18:18:16 2000
;; ++zone table++
; . (type 6, class 0, source Nil)
;	time=0, lastupdate=0, serial=0,
;	refresh=0, retry=0, expire=0, minimum=0
;	ftime=0, xaddrcnt=0, state=0000, pid=0
; 0.0.127.in-addr.arpa (type 1, class 1, source pz/local)
;	time=0, lastupdate=0, serial=2000092401,
;	refresh=0, retry=7200, expire=604800, minimum=86400
;	ftime=969833691, xaddrcnt=0, state=10041, pid=0
; lrxms.net (type 1, class 1, source pz/lrxms)
;	time=0, lastupdate=0, serial=2000092401,
;	refresh=0, retry=7200, expire=604800, minimum=86400
;	ftime=969833819, xaddrcnt=0, state=10041, pid=0
; 20.254.216.in-addr.arpa (type 1, class 1, source pz/216.254.20.117)
;	time=0, lastupdate=0, serial=2000092401,
;	refresh=0, retry=7200, expire=604800, minimum=86400
;	ftime=969833851, xaddrcnt=0, state=10041, pid=0
;; --zone table--
; Note: Cr=(auth,answer,addtnl,cache) tag only shown for non-auth RR's
; Note: NT=milliseconds for any A RR which we've used as a nameserver
; --- Cache & Data ---
$ORIGIN net.
lrxms	86400	IN	NS	ns.lrxms.net.	;Cl=2
	86400	IN	SOA	ns.lrxms.net. hostmaster.lrxms.net. (
		2000092401 28800 7200 604800 86400 )	;Cl=2
	86400	IN	MX	10 lrxms.net.	;Cl=2
	86400	IN	MX	20 lrxms.net.	;Cl=2
$ORIGIN lrxms.net.
ftp	86400	IN	A	216.254.20.117	;Cl=2
pop	86400	IN	A	216.254.20.117	;Cl=2
mail	86400	IN	A	216.254.20.117	;Cl=2
www	86400	IN	A	216.254.20.117	;Cl=2
n3byy	86400	IN	A	216.254.20.117	;Cl=2
ns	86400	IN	A	216.254.20.117	;Cl=2
$ORIGIN 254.216.in-addr.arpa.
20	86400	IN	NS	ns.lrxms.net.	;Cl=5
	86400	IN	SOA	ns.lrxms.net. hostmaster.lrxms.net. (
		2000092401 28800 7200 604800 86400 )	;Cl=5
$ORIGIN 20.254.216.in-addr.arpa.
117	86400	IN	PTR	n3byy.lrxms.net.	;Cl=5
$ORIGIN 0.127.in-addr.arpa.
0	86400	IN	NS	ns.lrxms.net.	;Cl=5
	86400	IN	SOA	localhost. hostmaster.localhost. (
		2000092401 28800 7200 604800 86400 )	;Cl=5
$ORIGIN 0.0.127.in-addr.arpa.
1	86400	IN	PTR	localhost.	;Cl=5
; --- Hints ---

Finally the log file from /var/log/messages which shows the start of
named.



Sep 24 19:38:31 n3byy named[1296]: starting.  named 8.2.2-P5 Sat Nov 27
13:52:39 CST 1999 ^Iroot at blackhole:/tmp/bind-8.2.2-P5/src/bin/named
Sep 24 19:38:31 n3byy named[1296]: master zone
"0.0.127.in-addr.arpa" (IN) loaded (serial 2000092401)
Sep 24 19:38:31 n3byy named[1296]: pz/lrxms:11: data "localhost" outside
zone "lrxms.net" (ignored)
Sep 24 19:38:31 n3byy named[1297]: Ready to answer queries.
Sep 24 19:38:31 n3byy named[1297]: sysquery: nlookup error on ?
Sep 24 19:38:49 n3byy named[1297]: No root nameservers for class IN
Sep 24 19:38:49 n3byy named[1297]: sysquery: nlookup error on ?
Sep 24 19:39:05 n3byy named[1297]: sysquery: nlookup error on ?

I see several errors, but I am seriously confused as to why. I setup the
files as I thought they were suposed to be and according to the info I got
here. Its likely I've misunderstood something. I will get this figured out
yet of course with help.

Geez and I thought this was going to be fairly easy.

I've been reading the Oreilly and Associates book which is quite good, but
man I sure missed something along the way I think.
I thought I had a handle on dns, but this sure proves I don't.




More information about the bind-users mailing list