From: dennisg@dngsun.East.Sun.COM (Dennis Govoni - Federal Area S.E. Vienna Va.)
Newsgroups: comp.unix.aux
Subject: Re: setting up named under A/UX 3.0
Date: 27 Jan 1993 19:22:41 GMT
Organization: Sun Microsystems, Inc.
Distribution: world
Reply-To: dennisg@dngsun.East.Sun.COM
NNTP-Posting-Host: dngsun.east.sun.com

In article JLv@newcastle.ac.uk, N.R.Ellis@newcastle.ac.uk (Nigel R. Ellis) writes:
>Hi,
>
>I've just recently had a stab at setting up the named server on a Quadra 700 running
>A/UX.  Given the manual page entry, supposedly all I have to do is have an entry
>in named.boot such as:
>
>> directory       /etc
>> domain          dur.ac.uk
>> primary         dur.ac.uk       129.234.4.9 129.234.4.11 129.234.4.13
>> cache           .               named.ca

Well, for one it says you are the primary server, but you do not have and files that
map names to IP addresses. For a primary server for domain dur.ac.uk you must have
a file that maps names to IP addresses. Also you must have a file that maps IP addresses to
names that uses in-addr.arpa. format.

your named.boot should look something like this for a primary server:

directory /usr/local/named   /* directory where files are */

primary  dur.ac.uk		db.names /* file of names to IP addreses */
primary  4.234.129.in-addr.arpa  db.129.234.4 /* Class B subnetted  IP to names */
primary  0.0.127.in-arpa	db.127.0.0 /* MANDATORY for handling loopback */
cache 	.			named.ca   /* Root servers to you! */


Now in db.names you need:

dur.ac.uk.	IN SOA dns2.dur.ac.uk. root.dns2.dur.ac.uk. (
		1 ; Serial
		10800 ; Refresh
		3600 ; Retry
		604800 ; Expiration
		86400 ); Minimum TTL

; name servers

dur.ac.uk.		IN NS	dns2.dur.ac.uk.

dns2.dur.ac.uk.		IN A	129.234.4.10 ; whatever Name server's addrress is 

a.dur.ac.uk.		IN A	129.234.4.11   ; a host in this domain


/* in db.4.234.129;

4.234.129.in-addr.apra.	IN SOA dns2.dur.ac.uk. root.dur.ac.uk. (
			1 ; Serial
			10800 ; Refresh
			3600 ; Retry
			604800 ; Expiration
			86400 ); Minimum TTL


4.234.129.in-addr.arpa.		IN NS	dns2.dur.ac.uk.
11.4.234.129.in-addr.arpa.	IN PTR   a.dur.ac.uk.

---------------------------------------------------------------------

the db.127.0.0 file is a loan SOA record with the loopback address and a PTR to localhost.

Please note that the periods *are important* at the end of the names. The above isn't complete
and would take pages to explain. If you need a good reference on DNS I recommend:


	DNS and BIND

	by Paul Albitz and Cricket Liu

	It's an O'reilly & Assoc. book
	

Oh, the named.boot file for a secondary server is slightly different in that you should substutute "secondary" for "primary" EXCEPT FOR the loopback address.

>
>and named.ca contains:
>
>> deneb.dur.ac.uk         86400   IN      A       129.234.4.41
>> dns2.dur.ac.uk          86400   IN      CNAME   hermes.dur.ac.uk
>> dur.ac.uk               120     IN      MX      9 hermes.dur.ac.uk
>> durham.ac.uk            120     IN      MX      9 hermes.dur.ac.uk
>> ...
>
>Ok?  So whay doesn't the blasted thing work?  When I setup my resolve.conf to
>point to my machine:
>
>> nameserver 129.234.202.104
>> domain dur.ac.uk
>
>Any pointers appreciated.
>
>Nigel.



---
Dennis Govoni				SUN Microsystems, Federal Area, SE
dennis.govoni@East.Sun.COM		2650 Park Tower Drive, Vienna, VA 22180
					Phone: 1-703-204-4250
					Fax:   1-703-204-4782

Newsgroups: comp.unix.aux