For what I'm guessing is this very reason - I have localhost A
127.0.0.1 as a record in my caching DNS server. I don't recall setting
it up so I'm guessing it's a default setting provided by RedHat. Perhaps
that's what's missing - and the machine in question is configured to use
DNS only? And not /etc/hosts?
This is merely a speculative wild guess - I could be a million miles
off :-)
YMMV, usual disclaimers apply, etc.
Best regards,
-->Gar
Timothy Murphy wrote:
> My laptop does not seem to know the address of localhost,
> even though it is given in /etc/hosts .
> Also the other machines on my little LANs seem to have no problem:
> =======================================
> [tim at william etc]$ telnet localhost smtp
> telnet: localhost: Temporary failure in name resolution
> localhost: Host name lookup failure
> [tim at william etc]$ telnet 127.0.0.1 smtp
> Trying 127.0.0.1...
> Connected to 127.0.0.1.
> Escape character is '^]'.
> ^]
> telnet> quit
> Connection closed.
> =======================================
> [tim at helen ~]$ telnet localhost smtp
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 helen.murphy.ie ESMTP Sendmail 8.13.1/8.13.1; Fri, 10 Dec 2004 18:37:36
> GMT
> ^]
> telnet> quit
> Connection closed.
> =======================================
>> Where does telnet get the address of localhost
> if not from /etc/hosts ?
> =======================================
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> 127.0.0.1 localhost.localdomain localhost localhost.murphy.ie
> =======================================
>> The only difference I know between william and helen
> is that william is using dhcp (dhclient, I suppose) to connect to the world -
> but could that affect matters?
> Both machines are running Fedora-3.
>> As always, I await the bottomless wisdom of the ILUG gurus.
>>>
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!