From owner-freebsd-questions Mon Mar 20 6:45:49 2000 Delivered-To: freebsd-questions@freebsd.org Received: from janus.afccc.af.mil (janus.afccc.af.mil [209.22.30.2]) by hub.freebsd.org (Postfix) with ESMTP id 24B7737B7FD for ; Mon, 20 Mar 2000 06:45:45 -0800 (PST) (envelope-from kevin.havener@afccc.af.mil) Received: from janus.afccc.af.mil (root@localhost) by janus.afccc.af.mil with ESMTP id OAA18459 for ; Mon, 20 Mar 2000 14:45:33 GMT Received: from thor.afccc.af.mil (thor.afccc.af.mil [209.22.31.24]) by janus.afccc.af.mil with ESMTP id OAA18455 for ; Mon, 20 Mar 2000 14:45:33 GMT Received: from afccc.af.mil (olasun7.afccc.af.mil [209.22.31.56]) by thor.afccc.af.mil with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id 1P8NS68P; Mon, 20 Mar 2000 07:56:19 -0500 Message-ID: <38D6394D.8A62059D@afccc.af.mil> Date: Mon, 20 Mar 2000 09:44:29 -0500 From: Kevin Havener X-Mailer: Mozilla 4.08 [en] (X11; U; SunOS 5.7 sun4u) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Can't resolve localhost Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I suddenly can't resolve localhost. I found this when I tried fetching my mail with fetchmail. It gave me this error message. $ fetchmail --keep fetchmail: SMTP connect to localhost failed fetchmail: SMTP transaction error while fetching mail from ... fetchmail: Query status=10 The only other problem I've had is that cvsup can't find its own ip address: # cvsup /etc/cvsupfile Cannot get IP address of my own host -- is its hostname correct? I've solved this in the past by dorking around with /etc/hosts but it's never messed up fetchmail before. Now cvsup and fetchmail are both hosed, and I can't get them to work again. Any suggestions? Following Lehey's advice in CFBSD (p 557) $ telnet localhost smtp localhost: Unknown host or more simply: $ telnet localhost localhost: Host name lookup failure Telnetting to localhost or to the smtp listener does work if I use 127.0.0.1. Now I was mucking around trying to set up a caching nameserver (also following procedure in CFBSD). I've obviously changed my configuration somehow. I've put everything back the way it was before I started having this problem--or so I think. I think these are all the relevant files. Can anyone think of another configuration file I've forgotten? This is a standalone (3.4R) machine connecting by modem to my ISP. $ 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 $ 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 $ more /etc/resolv.conf nameserver 209.215.82.130 nameserver 209.215.82.133 $ more rc.conf # This file now contains just the overrides from /etc/defaults/rc.conf # please make all changes to this file. # -- 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" NOTE: never mucked with host.allow and host.equiv to my knowledge To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message