Subject: BIND
To: None <current-users@NetBSD.ORG>
From: Julian Bean <>
List: current-users
Date: 03/04/1996 17:03:10
Has anybody got some definitive ideas on how BIND is *supposed* to be set
up.  I have a working set up, but I was trying to rationalise it...

1) resolv.conf(5) suggests that on a 'normally configured' machine, you
shouldn't need a resolv.conf at all.  Of course, this isn't quite true, as
if you don't have a resolv.conf, the system assumes you don't have DNS and
only uses /etc/hosts.

2) resolv.conf(5) says that if there is no domain directive, the domain is
set to everything after the first dot in the hostname.  This implies that
the hostname of my machine should by, rather than
'elsie' which is what it is now.  However... if /etc/myname is used to
initialise hostname to, then what should be in
/etc/defaultdomain??  And will then appear in my prompt
etc?  Are hostnames supposed to be FQ or not?

3) If there is a nameserver directive in resolv.conf, then when
nslookup is invoked, it says "Default server: localhost\nAddress:".  If there is no such directive, or no resolv.conf file at all,
it says "Default server: elsie\nAddress".  Which is preferred

4) If I just want my machine to serve as a name-cache for a small local
network, it should have no primary or secondary directives in named.boot,

5) This machine is not permanently on the net - it is connected by a PPP
link.  Should I put the resolver down every time I hang up the link (e.g.
in /etc/ppp/ip-down)?  This prevents my macintosh on the network from
looking even local names, since they have to use DNS.

I am particularly interesting in the answer to 3.  I have never quite got
my brain around what the 'right' way of coping with domain names is...


|  Jelibean aka  |           |  6 Evelyn Road      |
|  Jules aka     |                               |  Richmond, Surrey   |
|  Julian Bean   |(|  TW9 2TF    *UK*    |
|  The Other Place - n. (pop.) Depending on the affiliation of the     |
|  speaker, one of Oxford, Cambridge, The House of Lords, The House of |
|  Commons, Hell.  Draw your own conclusions.                          |