Re: DNS

Glynn Clements (glynn@sensei.co.uk)
Sun, 3 Aug 1997 10:48:12 +0100


Fyodor Yarochkin wrote:

> ;
> ; 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

You may also want:

primary localhost db.local

With a db.local file which looks something like:

@ IN SOA blackstar.com fygrave.freenet.bishkek.su (
1997042401 ; Serial
10800 ; Refresh 3 hours
3600 ; Retry 1 hour
604800 ; Expire 1 week
86400 ) ; Minimum 1 day
IN NS blackstar.com.
localhost. IN A 127.0.0.1

> i have db.127.0.0 as following :
> 0.0.127.in-addr.arpa. IN SOA blackstar.com. fygrave.freenet.bishkek.su. {

This line should end with `(' and not `{'. I'm not sure that you
should have trailing dots either.

> I wonder how can i get my nslookup recognize both blackstar.com and
> blackstar.com. and what is the difference?

The difference between blackstar.com (no dot) and blackstar.com. (with
a dot) is analagous to the difference between usr/bin and /usr/bin.

Domain names ending in a dot are absolute, whereas names not ending in
a dot are relative to the local domain, so blackstar.com is equivalent
to e.g. blackstar.com.blackstar.com.

-- 
Glynn Clements <glynn@sensei.co.uk>