Re: Dig and nslookup resolve; ping doesn't

From: Moe Trin (ibuprofin_at_painkiller.example.tld)
Date: 07/14/05


Date: Thu, 14 Jul 2005 14:59:59 -0500

In the Usenet newsgroup comp.os.linux.networking, in article
<11db6vicpii1d63@corp.supernews.com>, Mark Tunnell wrote:

>I've got a box running Fedora Core release 3. I'm able to resolve
>names such as www.yahoo.com using nslookup or dig but not using ping.
>"ping www.yahoo.com" returns "ping: unknown host www.yahoo.com".

strace -eopen ping www.yahoo.com

>/etc/host.conf
> order hosts,bind
>/etc/nsswitch.conf
> hosts: files dns
>
>I'm logged in as root. What am I missing here?

I dunno - you did test the obvious problems (DNS query tools don't use
those two files, the resolver does), and I'd guess it can't be a
permission problem... What's on the wire? Are you seeing packets
going out to the name servers? Are they the right ones?

        Old guy



Relevant Pages

  • resolve hostname
    ... I can ping the outside ipaddresses but not the hostnames on my solaris ... nameserver 68.87.72.130 ... ipnodes: files dns ... alpine# nslookup www.google.com ...
    (SunManagers)
  • Re: network problems - segmentation fault
    ... Strace gave nothing out to file.out, just error msges, please find attached. ... In my homenetwork I can ping to the other computers, ... segmentation fault - Speicherzugriffsfehler ... Anyway, try getting rid of IPv6 on your interfaces, first. ...
    (alt.os.linux)
  • Re: hosts file
    ... > Is named running? ... When i try ping 127.0.0.1 i get: ... >>> With the files listed first ... >> hosts: files dns ...
    (freebsd-questions)
  • Re: Hello. Just acquired a Sun Sparc Ultra 5 with Solaris 8
    ... plugged my ethernet card into my ADSL modem, and was able to ping it ... however I am unable to surf any web pages. ... nameserver 1.2.3.4 # your ISP's nameserver ... hosts: files dns ...
    (comp.unix.solaris)
  • Q: Newbie installing Sol8 on x86 - web access help needed
    ... I need help with setting up web access on my newly installed Sol 8 unit. ... can ping my ADSL router/gateway and I can ping local Win PCs. ... hosts: files dns ...
    (comp.unix.solaris)