*BSD News Article 27952


Return to BSD News archive

Xref: sserve comp.os.386bsd.questions:9079 comp.os.386bsd.misc:2011 comp.unix.admin:17639
Path: sserve!newshost.anu.edu.au!munnari.oz.au!bruce.cs.monash.edu.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!pipex!uknet!demon!blodwen.demon.co.uk!jrg
From: jrg@blodwen.demon.co.uk (james r grinter)
Newsgroups: comp.os.386bsd.questions,comp.os.386bsd.misc,comp.unix.admin
Subject: Re: How come named works so slow ?
Date: 01 Mar 1994 03:42:23 GMT
Organization: Blodwen's home for the trivially insane
Lines: 54
Message-ID: <JRG.94Mar1034224@blodwen.demon.co.uk>
References: <CLxMvB.Ann@latcs1.lat.oz.au>
NNTP-Posting-Host: blodwen.demon.co.uk
In-reply-to: wongm@latcs1.lat.oz.au's message of Mon, 28 Feb 1994 11:35:34 GMT


[posted, cos others may be interested in getting the nameservers to work
independently]

In article <CLxMvB.Ann@latcs1.lat.oz.au> wongm@latcs1.lat.oz.au (M.C. Wong) writes:
   it hangs during loading of mountd, sendmail, tsapd (ISODE) for 2 to
   3 minutes, the same happen when I do telnet, rlogin, ftp, ping,
   arp, netstat etc.

Its trying to look up addresses, and timing out..

   ## /etc/resolve.conf
   domain	lat.oz.au
   nameserver 131.172.42.233  # this is my IP address

firstly, put the other nameserver as an extra line, for a backup.

   ## /etc/named.boot (linked to /etc/namedb/named.boot)

[munch]

   cache     .							root.cache
   primary     131.172.42.233		localhost.rev

You'd also need an entry like:

 primary dom.ain  domain.fwd

and a file domain.fwd with forward addresses.

As you have another nameserver and want to inter-operate, I would,
however, recommend:

 secondary lat.oz.au <nameserver ip# for domain> <second name server ip#> lat.oz.au
 secondary 42.172.131.in-addr.arpa <same nameservers> <same> 42.172.131.in-addr.arpa

instead of what you had. The last items being the name to store in-
it makes it easy to keep track of if you use the zone/ domain name for
that. This will make it copy a zone file from the nameserver for your
domain if it has expired/ you don't have one.

   ## /etc/namedb/root.cache
   .			IN	NS	SLIP33.LAT.OZ.AU.

   ; Prep the cache (hotwire the addresses).  Order does not matter.
   SLIP33.LAT.OZ.AU		IN	A	131.172.42.233

This would make your machine work on its own. If you want to
interwork, put this back to the demo one, or maybe set the root to be
the nameservers for lat.oz.au - that should be good enough.

Then go and borrow or buy a copy of the O'Reilly DNS and Bind book :)

James.