Re: Can not ping localhost -- all looks correct...

From: Moe Trin (ibuprofin_at_painkiller.example.tld)
Date: 11/07/04


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



Relevant Pages

  • Networking Problem cont.
    ... Directory permissions of /etc are 755. ... Using this command (which is how the postgres manual ... The contents of the hosts, ... Mail has the best spam protection around ...
    (SunManagers)
  • Re: Trojan Downloader - Clean, But One Last Task
    ... Also reset the permissions so that there is only read only permissions for ... My local host is redirected with a different ... I've attempted to open the HOSTS ... file in Windows\System32 and Drivers\etc to delete the redirect. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Security settings
    ... is this proof that the hosts FP ... the FP permissions, ... >> Paul M ... >> access to your database, ...
    (microsoft.public.frontpage.client)
  • Re: access permission to ping.exe
    ... > - hosts a page through IIS say, ... > Looks like in windows XP access permissions for % ...
    (microsoft.public.windowsxp.security_admin)
  • Re: karl-desktop
    ... Tony Arnold wrote: ... system by the Ubuntu loader. ... If I ping localhost I get: ... Here is what is in hosts: ...
    (Ubuntu)