[comp.unix.admin] need help in starting up in.named

mzaik@kaa.eng.ohio-state.edu (Tahsin Mzaik) (09/22/90)

We are having a problem with named. When named runs, we get the message
that a file was not found in the named.boot file. The result is that
foriegn hosts can not be accessed, either by name or by network id.

The named.boot file is as follows:
	;	named.boot file
	domain		ohio-state.edu
	primary		ohio-state.edu		
	secondary	eng.ohio-state.edu	128.146.1.7

The problem, we believe, is that a source file should be specified after
the domain specification in the line that starts with 'primary,' that is we
need a file which contains authoritative data for the ohio-state.edu
domain. This file should be in a 'master file' format.

We don't have such a file, and we would like to know either how to create
this file, or where to get it from. 

Thanks in advance for your help.

verber@pacific.mps.ohio-state.edu (Mark Verber) (09/23/90)

In article <5846@quanta.eng.ohio-state.edu>
mzaik@kaa.eng.ohio-state.edu (Tahsin Mzaik) writes:

   We are having a problem with named. When named runs, we get the message
   that a file was not found in the named.boot file.
   The named.boot file is as follows:
	   ;	named.boot file
	   domain		ohio-state.edu
	   primary		ohio-state.edu		
	   secondary	eng.ohio-state.edu	128.146.1.7

   The problem, we believe, is that a source file should be specified after
   the domain specification in the line that starts with 'primary,'...

Not only do you need a file specified for the primary, but you should
have one specified for the secondary also.  But this has nothing to do
with your real problem.  Your real problem is that this table is
completely bogus.  First of all, my guess is that your domain name
should be "eng.ohio-state.edu" rather than "ohio-state.edu" which you
should be setting in /etc/resolv.conf.  Secondly, you are *not*
primary for ohio-state.edu, you should not be claiming to be.  Third, as
far as I know, you are *not* secondary for eng.ohio-state.edu.
Please, please, please, don't claim to be secondary unless you really
are!  Hotwire your nameserver cache, but don't take secondary dumps
unless your are a secondary.  Remove all those lines and add something
like this:

	cache	. /etc/named.d/named.ca
	primary 0.0.127.in-addr.arpa /etc/named.d/loopback

loopback would look something like this:

	@	in	soa	your_machine. postmaster.your_machine. (
		                1.1     ; serial
		                3600    ; refresh
		                300     ; retry
		                3600000 ; expire
		                14400 )  ; minimum
		in	ns	your_machine.
	1	in	ptr	localhost.

named.ca has the root name servers, and some local hot wiring
for say, ohio-state.edu, eng.ohio-state.edu, and 146.128.in-addr.arpa.
For example, something like this could be appended onto the end of
your cache of root nameservers:

ohio-state.edu.			99999999  IN	NS nisca.ircc.ohio-state.edu.
                                99999999  IN    NS tut.cis.ohio-state.edu.
                                99999999  IN    NS cheops.cis.ohio-state.edu.
eng.ohio-state.edu.		99999999  IN	NS nisca.ircc.ohio-state.edu.
                                99999999  IN    NS tut.cis.ohio-state.edu.
                                99999999  IN    NS cheops.cis.ohio-state.edu.
				99999999  IN	NS eng.eng.ohio-state.edu.
146.128.in-addr.arpa.		99999999  IN    NS nisca.ircc.ohio-state.edu.
                                99999999  IN    NS tut.cis.ohio-state.edu.
                                99999999  IN    NS cheops.cis.ohio-state.edu.
osc.edu.                        99999999  IN    NS suna.osc.edu.
                                99999999  IN    NS garcon.cso.uiuc.edu.
                                99999999  IN    NS uxc.cso.uiuc.edu.
oar.net.                        99999999  IN    NS suna.osc.edu.
                                99999999  IN    NS garcon.cso.uiuc.edu.
                                99999999  IN    NS uxc.cso.uiuc.edu.
;
eng.eng.ohio-state.edu.		99999999  IN	A  128.146.10.2
nisca.ircc.ohio-state.edu.      99999999  IN    A  128.146.1.7
tut.cis.ohio-state.edu.		99999999  IN	A  128.146.8.60
cheops.cis.ohio-state.edu.      99999999  IN    A  128.146.8.62
suna.osc.edu.                   99999999  IN    A  128.146.1.4
garcon.cso.uiuc.edu.            99999999  IN    A  128.174.5.58
uxc.cso.uiuc.edu.               99999999  IN    A  128.174.5.50

Cheers,
Mark