[lug] DNS, named and RH6.1

John Starkey jstarkey at hughes.net
Sat Jul 15 12:45:03 MDT 2000


Hi all again.

I'm trying to set up a caching DNS for the experience of doing it, more
better pay maybe? :}

I am a little confused about the sequence of events. Here's what I see as
happening, could someone correct me if I'm wrong?

#nslookup ajstarkey.com

the kernel looks at /etc/resolv.conf and finds 

search ajstarkey.com
nameserver	192.168.0.2 
nameserver	205.139.34.25
nameserver	205.139.34.24

then looks for the 192.168.0 in /etc/named.conf, finds it then looks for
192.168.0 (using reverse DNS) and finds 0.168.192.in-addr.arpa which
refers to /var/named/named.192.168.0. Now does it look at
the 

	NS	 ajstarkey.com
	
record in the file? I thought it would look at the SOA at the top, which
is ns.hughes.net, and be shipped off to that domain to check out that DNS
before climbing back up the tree. I could swear it does, which might explain 
the result of 

ajstarkey.com.ajstarkey.com
207.138.82.242

Before I started using "@" in place of ajstarkey.com in the

ajstarkey.com		A	207.139.82.242

record. Which returns:

ajstarkey.com
207.138.82.242

Hughes.net has a record of ajstarkey.com behind a firewall and I can only
use mine internally. So I think that explains the doubling of the
ajstarkey.com in the nslookup results. But can anyone ellaborate on it? Is
it because my machine (192.168.0.2) claims to be ajstarkey.com while
hughes claims 207.138.82.242 (my static IP) to be ajstarkey.com, making
192.168.0.2=ajstarkey.com a subnet name. In other words, is named 
appending hughes.net's ajstarkey.com to my 192.168.0.2? 

I hope this is clear enough. It's the weekend I don't expect anyone to
spend an hour commenting. I played around with this (and d-loading Oracle
with my soon to be obsolete 56k) for 20 hours yesterday. (I settled for
Sybase til TCI shows up.)

By god, I've confused myself again!? Let me have it--baptism by fire.
Errrr.

TIA,

John








More information about the LUG mailing list