*BSD News Article 32526


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!ames!pacbell.com!ohlone.kn.PacBell.COM!smui
From: smui@news.kn.PacBell.COM (Sherman Mui)
Newsgroups: comp.os.386bsd.questions
Subject: Re: FreeBSD: error message during boot
Date: 8 Jul 1994 18:43:26 GMT
Organization: Pacific Bell Knowledge Network
Lines: 62
Message-ID: <2vk6oe$ate@ohlone.kn.PacBell.COM>
References: <2vjuhk$qev@panix3.panix.com>
NNTP-Posting-Host: pomo.kn.pacbell.com
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Newsreader: TIN [version 1.2 PL2]


Bill Paul (wpaul@panix.com) wrote:
: In /etc/hosts, you must have a line that says:
: 127.0.0.1		localhost	localhost.my.domain
: Errors that will result if you don't do this: ifconfig will not be
: able to figure out what IP address goes with the name 'localhost'
: and you'll get 'localhost: bad value.'

Ok, should I also have my hostname and domain?
Also my machine is not on any network, however, I will be getting a uucp 
connection from work. Would my domain need to be changed or does this 
stuff have nothing to do with uucp?

: In /etc/netstart, you must do:
: ifconfig lo0 localhost
: route add localhost     <-- could well be optional, but doesn't hurt

Yeah, I found that line commented out but it looked a bit different:
rout add $hostname localhost

: Errors that will result if you don't do this: the loopback device will
: not be properly configured and/or you will have no route to it. The
: result is that programs expecting to have networking enabled (including
: syslog and friends) will get horribly confused.

I see...

: *AND*, if you're not going to be directly connected to a network, you
: should change /etc/host.conf to say:
: hosts
: bind
: It's set up the other way around by default. I don't like it that
: way myself.

done.

: Lastly, be very careful with /etc/hosts.equiv. If you add a hostname
: to it, say 'otherhost.domain,' then root on otherhost.domain will
: be able to rsh/rlogin to your machine without a password.

But should my hostname be in there?

: Once you have everything set correctly, you should be able to type
: 'telnet localhost' and establish a connection to yourself. If you
: get an error such as 'localhost: unknown host' or 'network unreachable'
: then you still have work to do.

Oh, should I have been replacing 'localhost' with my hostname?
Btw, I just successfully telnetted to localhost and logged in!

Thanks a bunch!
Sherman

--
----------------------------------------------------------------------
 Sherman |   Mui   | moooster| @thetech| .com    | smui@kn | .pacbell|
----------------------------------------------------------------------
    |  .com   |         |  Wise   |   men   |  learn  |  more   |
----------------------------------------------------------------------
  from   | fools,  |  than   |  fools  |  from   |   the   |  wise.  |
----------------------------------------------------------------------