Networking Forums

Networking Forums > Computer Networking > Linux Networking > Dig and nslookup resolve; ping doesn't

Reply
Thread Tools Display Modes

Dig and nslookup resolve; ping doesn't

 
 
Mark Tunnell
Guest
Posts: n/a

 
      07-13-2005, 10:53 PM
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".

/etc/host.conf
order hosts,bind
/etc/nsswitch.conf
hosts: files dns

I'm logged in as root. What am I missing here?

Mark
 
Reply With Quote
 
 
 
 
Moe Trin
Guest
Posts: n/a

 
      07-14-2005, 07:59 PM
In the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed)>, 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
 
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
Ping does not resolve, nslookup does, DNS queries end up externall Mike. Windows Networking 3 03-06-2008 06:18 PM
Nslookup succeeds, but ping fails to resolve hostname Curt McNamee Windows Networking 1 11-07-2006 03:04 PM
nslookup works but ping does'nt !? Mark Linux Networking 1 10-12-2006 02:54 AM
should nslookup resolve by using single-labels durx Windows Networking 0 07-05-2006 04:50 PM
LMHOSTS not working for NSLOOKUP and PING Carol Chisholm Windows Networking 1 08-06-2004 06:38 PM



1 2 3 4 5 6 7 8 9 10 11