Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Mar 2000 16:38:16 +0000
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        Kevin Havener <kevin.havener@afccc.af.mil>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Can't resolve localhost
Message-ID:  <20000320163816.A17092@strontium.scientia.demon.co.uk>
In-Reply-To: <38D6394D.8A62059D@afccc.af.mil>
References:  <38D6394D.8A62059D@afccc.af.mil>

next in thread | previous in thread | raw e-mail | index | archive | help
Kevin Havener wrote:

> I suddenly can't resolve localhost.  I found this when I tried
> fetching my mail with fetchmail.  It gave me this error message.  

...

>      $ more /etc/hosts
>      127.0.0.1  localhost #there is a tab here.  Is this tab sensitive?
>                           #just tried it without --doesn't seem to be

No, AFAIK both spaces and tabs are fine.

>      $ more /etc/host.conf
>      # $Id: host.conf,v 1.5 1998/11/16 02:02:30 jkh Exp $
>      # First try the /etc/hosts file
>      hosts
>      # Now try the nameserver next.
>      bind
>      # If you have YP/NIS configured, uncomment the next line
>      # nis

Strange. I don't see why that wouldn't work. You could try adding
"localhost.your.domain" as another name for 127.0.0.1, but I don't think
that matters (it doesn't seem to here).

What do you get if you kdump the output of "ktrace ping localhost", for
example?

>      # -- sysinstall generated deltas -- #
>      ifconfig_ppp0="inet   netmask 255.255.255.0"
>      moused_enable="YES"
>      defaultrouter="NO"
>      network_interfaces="ppp0 lo0"
>      hostname="freebsd"
>      linux_enable="YES"
>      lpd_enable="YES"
>      browserPackage="lynx"


ah... where's the ifconfig_lo0 line? That could cause problems. You need
ifconfig_lo0="127.0.0.1"

-- 
Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000320163816.A17092>