From owner-freebsd-questions Mon Mar 20 10:32:21 2000 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id B0D0337B90C for ; Mon, 20 Mar 2000 10:32:13 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.12 #1) id 12X5C4-000PdV-00; Mon, 20 Mar 2000 16:38:16 +0000 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.12 #7) id 12X5C4-000MAC-00; Mon, 20 Mar 2000 16:38:16 +0000 Date: Mon, 20 Mar 2000 16:38:16 +0000 From: Ben Smithurst To: Kevin Havener Cc: freebsd-questions@freebsd.org Subject: Re: Can't resolve localhost Message-ID: <20000320163816.A17092@strontium.scientia.demon.co.uk> References: <38D6394D.8A62059D@afccc.af.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <38D6394D.8A62059D@afccc.af.mil> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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