Re: Loopback issues




Peter wrote:
Hi:

I am having a rather confusing issue regarding my loopback address. The
computer has a 10.x.x.x address on its eth0 interface which is connected
to a Linksys router's LAN port

The ifconfig command shows that my loopback address is 127.0.0.1. My
DNS resolver shows that this is still the case. The /etc/host files
shows that the localhost is 127.0.0.1.

nslookup localhost and nslookup localhost.localdomain both show up as
127.0.0.1.

however when I attempt to ping typing this command

ping localhost

It shows that it is pinging my border router's WAN IP address instead of
the loopback address. I can verify that there is no IP masqurading
going on as there is no such entry in the iptables.

Any ideas as to what might be going on here?

There are a huge number of possibilities. Doing an 'strace' on the ping
might help. For example:

You might be in the domain 'mydomain.com' and ping might be trying
'localhost.mydomain.com' first.

You might be using 'nscd' and it might have some other value for
'localhost' stuck in its cache.

Your resolver may be configured to use something else before /etc/host
or DNS.

DS

.



Relevant Pages

  • Loopback issues
    ... I am having a rather confusing issue regarding my loopback address. ... The /etc/host files shows that the localhost is 127.0.0.1. ... nslookup localhost and nslookup localhost.localdomain both show up as 127.0.0.1. ... however when I attempt to ping typing this command ...
    (comp.os.linux.networking)
  • Re: Can not ping localhost -- all looks correct...
    ... > ping: unknown host localhost ... command line but I am getting a similar error which says "Local Host ...
    (comp.os.linux.networking)
  • poor network loopback performance and scalability (was: Re: [RFC,PATCH] loopback: calls netif_receiv
    ... Socket bandwidth using localhost: 2607.09 MB/sec ... Set your loopback MTU to some larger value if this result and the ... pipes are still another ~25% faster: ... generic and therefore use IP sockets for everything. ...
    (Linux-Kernel)
  • Re: Strange error during boot. sm-mta??
    ... :outside world for asylum, asylum.local and 3.2.168.192.in-addr.arpa. ... :Don't expect nslookup to resolve these names. ... now when i ping asylum.local it pings my pc... ... but now when i ping localhost, ...
    (comp.unix.bsd.freebsd.misc)
  • RE: localhost will not browse to website.
    ... I have Windows Server 2003 configured and running with MSSQL 2005 ... > Sounds like you have the correct config. ... when I ping localhost as well ...
    (microsoft.public.windowsxp.general)