Date: Mon, 20 Mar 2000 09:44:29 -0500 From: Kevin Havener <kevin.havener@afccc.af.mil> To: freebsd-questions@freebsd.org Subject: Can't resolve localhost Message-ID: <38D6394D.8A62059D@afccc.af.mil>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38D6394D.8A62059D>