*BSD News Article 27782


Return to BSD News archive

Xref: sserve comp.os.386bsd.questions:8982 comp.os.386bsd.misc:1993 comp.unix.admin:17490
Path: sserve!newshost.anu.edu.au!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!lugb!latcs1!wongm
Newsgroups: comp.os.386bsd.questions,comp.os.386bsd.misc,comp.unix.admin
Subject: How come named works so slow ?
Message-ID: <CLxMvB.Ann@latcs1.lat.oz.au>
From: wongm@latcs1.lat.oz.au (M.C. Wong)
Date: Mon, 28 Feb 1994 11:35:34 GMT
Organization: Comp Sci, La Trobe Uni, Australia
Lines: 56

Hi,
  I am running FreeBSD-1.0.2, I want to use named instead of /etc/hosts for
names lookup. In /etc/netstart I have uncomment the line name_server=YES,
and in /etc/named.boot linked to /etc/named/named.boot, but when I boot up,
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.
I wonder have I done anything wrong ? I am conneted to my dept. LAN using
SLIP, and I got /etc/resolv.conf file. What basically I want to do is to
assign my own machine (slip33.lat.oz.au) as the DNS master  for myself, and
I will also want to make use of other DNS server in my dept. LAN over slip.

These are my settings for various files :

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

## /etc/named.boot (linked to /etc/namedb/named.boot)
sortlist 131.172.0.0
; sortlist 128.3.0.0

directory	/etc/namedb

; type    domain		source host/file		backup file

cache     .							root.cache
primary     131.172.42.233		localhost.rev

## /etc/namedb/localhost.rev
slip33.lat.oz.au.	IN	SOA	slip33.lat.oz.au. root.slip33.lat.oz.au.  (
				1.4	; Serial
				3600	; Refresh
				300	; Retry
				3600000	; Expire
				3600 )	; Minimum
slip33.lat.oz.au	IN	NS	slip33.lat.oz.au.
slip33.lat.oz.au	IN	A	172.131.42.233

## /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

  Have I done anything wrong in the initial setting of assigning my system
to be the DNS server for itself regardless other machines ? What need to be
changed to make named work faster ? What happen if I am to use the nameserver
in my dept. machine called latcs1.lat.oz.au ? Do I need to modify 
/etc/resolv.conf ? I suppose I can add it as  secondary server in my
named.boot file , can't I ?

  Many thanks in advance, and email replies please.

- wongm@latcs1.lat.oz.au (M.C Wong)
-- 
- wongm@latcs1.lat.oz.au