Re: DNS

Curtis' test dude (dude@oldcolo.com)
Sat, 2 Aug 1997 10:30:52 -0600 (MDT)


On Sat, 2 Aug 1997, Fyodor Yarochkin wrote:

> > The problem is probably because you don't have a zone file setup for the
> > domain blackstar.com and one for 207.135.194.in-addr.arpa.
> yes.. i do have 'em:
> here is the ls of the dir, where i keep all database:
> db.127.0.0 db.blackstar
> db.194.135.207 db.cache
>
> > Do you have a zone file for 127.0.0.1?
> yes..
> [from db.127.0.0]
> 1.0.0.127.in-addr.arpa. IN PTR localhost.
>
>
> > Do you have a zone file for 207.135.194.in-addr.arpa?
> yes..
> > Do you have a zone file for blackstar.com?
> > Do you have a named.cache file with the root name servers in it?
> yes... but its name is db.cache
> or should i create named.cache as well somewhere?
No, the name doesn't matter.. as long as your boot file knows what it is
called.

>
> > Do you have a named.boot file with primary lines for the first 3 above?
>
> yes: here it is:
> ;
> ; boot file for name server
> ;
> directory /etc/namedDB
> primary blackstar.com db.blackstar
> primary 207.135.194.in-addr.arpa db.194.135.207
> primary 0.0.127.in-addr.arpa db.127.0.0
> cache . db.cache

I take it all of the files in the third column are in the /etc/namedDB
directory?

>
>
>
> > Get those setup and you shouldn't have any problem as it appears your
> > /etc/resolv.conf is setup with the IP of your box listed as the first
> > nameserver entry. Try adding:
> > nameserver 127.0.0.1 as the first nameserver line to make sure you have
> > your loopback zone setup correctly.
> >
> oops.. here it started freaking.. before i had nameserver 194.135.207.21
> when i changed to this, i got:
> BlackStar:/etc/namedDB# nslookup blackstar.com
> *** Can't find server name for address 127.0.0.1: Server failed
>
> any ideas what's wrong?
> i have db.127.0.0 as following :
> 0.0.127.in-addr.arpa. IN SOA blackstar.com. fygrave.freenet.bishkek.su. {
> 1 ; Serial
> 10800 ; Refresh after 3 hours
> 3600 ; Retry after one Hour
> 604800 ; Expire after one week
> 86400 ) ; Minimum TTL of one day
>
> 0.0.127.in-addr.arpa. IN NS blackstar.com.
>
> 1.0.0.127.in-addr.arpa. IN PTR localhost.
>
change the 0.0.127.in-addr.arpa. to @

delete 0.0.127.in-addr.arpa. out of the IN NS blackstar.com. line, and
then just for eye functionality line the IN NS back up to where it was.

make 1.0.0.127.in-addr.arpa. IN PTR localhost. look like:

1 IN PTR localhost.

after these changes, as root do a named.reload
try you nslookup again.
go buy O'Reilley and Assoc. DNS and BIND from your favorite bookstore.

Your loopback is 127.0.0.1 not 127.0.0 and you NS line is saying it is
127.0.0 The other changes I made are mostly cosmetic except for the
first change which is related to the loopback address stuff.

Curtis