*BSD News Article 57501


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!howland.reston.ans.net!plug.news.pipex.net!pipex!dish.news.pipex.net!pipex!handbag.tecc.co.uk!parody.tecc.co.uk!not-for-mail
From: james@parody.tecc.co.uk (James Raynard)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Network problem on FreeBSD 2.1 ?
Date: 14 Dec 1995 00:38:55 -0000
Organization: A FreeBSD box
Lines: 35
Message-ID: <4anrmv$1j5@parody.tecc.co.uk>
References: <4alc7t$mkv@karri.bs.wa.gov.au>
NNTP-Posting-Host: localhost

In article <4alc7t$mkv@karri.bs.wa.gov.au>, Jim <jimm@fcs.wa.gov.au> wrote:
>
>The machine boots and runs OK; but when it gets to the 
>'ifconfig lo0 inet localhost' line, it sits there for five full 
>minutes before continuing.  In a similar way; when adding the
>default, and static routes, each route add command takes 2 minutes
>to return.

Sounds like a nameserver time-out.

>As I said, the machine runs OK, but the long delay in executing
>network config commands seems wrong.

At a guess, the hostnames are in /etc/hosts but the machine tries to
get them from a nameserver first.

Change /etc/hosts.conf to read

hosts
bind

in that order (with the obvious change if you run NIS). This will make 
sure that /etc/hosts is checked before the nameserver.

>Please reply by email

It's usually considered good manners to read the answer in the newsgroup
- other people may want to know as well and it improves the chances of
erroneous answers being picked up and corrected.

However, as I'm in a good mood, I'll mail an abridged version 8-)

James
-- 
Segmentation fault (core dumped): cannot find file '.signature'