Re: Can not ping localhost -- all looks correct...
From: Moe Trin (ibuprofin_at_painkiller.example.tld)
Date: 11/07/04
- Next message: PenguinsAnonymous_at_notAchance.org: "Re: trouble with xinetd"
- Previous message: Haifeng Zhu: "How to set Linux Max Queue Length ?"
- In reply to: Ringo Langly: "Can not ping localhost -- all looks correct..."
- Next in thread: Ringo Langly: "Re: Can not ping localhost -- all looks correct..."
- Reply: Ringo Langly: "Re: Can not ping localhost -- all looks correct..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 06 Nov 2004 19:37:56 -0600
In article <7d96e89e.0411051248.1664ace4@posting.google.com>,
Ringo Langly wrote:
>I'm on Slackware 10, and something odd:
>
> # ping localhost
> ping: unknown host localhost
>
>Here's my /etc/hosts file:
> 127.0.0.1 localhost
1. What are permissions to /etc/hosts
2. What are permissions to /etc/host.conf
3. What are permissions to /etc/nsswitch.conf
4. Make sure that /etc/nsswitch.conf has a line referring to hosts:
hosts: files dns
Use tcpdump, and make sure the system isn't trying to resolve this
via the name server. You could probably also trace the calls - try
strace -eopen ping -c1 localhost
and see where things are going astray.
>lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:174430 errors:0 dropped:0 overruns:0 frame:0
> TX packets:174430 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:27679796 (26.3 Mb) TX bytes:27679796 (26.3 Mb)
SOMETHING is able to figure out how to use the loopback, so it's not
a networking problem. It also should not be your firewall, because
that doesn't come into play when trying to resolve names in the hosts
file.
Old guy
- Next message: PenguinsAnonymous_at_notAchance.org: "Re: trouble with xinetd"
- Previous message: Haifeng Zhu: "How to set Linux Max Queue Length ?"
- In reply to: Ringo Langly: "Can not ping localhost -- all looks correct..."
- Next in thread: Ringo Langly: "Re: Can not ping localhost -- all looks correct..."
- Reply: Ringo Langly: "Re: Can not ping localhost -- all looks correct..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|