Networking Forums

Networking Forums > Computer Networking > Linux Networking > Loopback issues

Reply
Thread Tools Display Modes

Loopback issues

 
 
Peter
Guest
Posts: n/a

 
      08-30-2006, 11:59 PM
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?
 
Reply With Quote
 
 
 
 
David Schwartz
Guest
Posts: n/a

 
      08-31-2006, 12:37 AM

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

 
Reply With Quote
 
Peter
Guest
Posts: n/a

 
      08-31-2006, 02:46 AM
David Schwartz wrote:

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

This is exactly the case.... it is appending domain name to the localhost.

the order in resolving is as follows
hosts
dns
infact when I attempt to ping it this is exactly the case. My problem
is that the system mails a report to root@localhost which I am not
receiving.
 
Reply With Quote
 
Peter
Guest
Posts: n/a

 
      08-31-2006, 03:05 AM
Okay!! fixed the issue.
 
Reply With Quote
 
tek
Guest
Posts: n/a

 
      09-01-2006, 09:05 PM

Peter wrote:
> Okay!! fixed the issue.


Which was? Or is it a secret?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: problem with ethernet loopback test using loopback plug/stub: receiving socket not seeing packet. Rick Jones Linux Networking 10 08-22-2010 07:17 PM
MN-700 Loopback Jeff Broadband Hardware 1 07-21-2004 06:11 PM
MN-700 Loopback mouf Broadband Hardware 13 01-14-2004 08:24 AM
Loopback Adapter Moin Yeganeh Windows Networking 0 10-29-2003 10:31 PM
IPTables and loopback S Purkayastha Linux Networking 2 06-29-2003 07:26 PM



1 2 3 4 5 6 7 8 9 10 11