Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-01-2004, 06:49 AM   #1
LQ Newbie
Registered: Oct 2004
Location: tartu
Posts: 3

Rep: Reputation: 0
ping dont use nameservers

I cant ping hosts by name . Only by ip. Telnet also.
Like ping and telnet ignoring my /etc/resolv.conf nameserver.
heres a list of working and non workign actions :

>host -- gives me IP -- ok
>nslookup -- working -- ok
>ping -- error unknown host
>ping ip_nr -- working -- ok
>telnet -- error: BAD PORT
>telnet 23 - error : Name or service not known
>telnet ip -- error BAD PORT
>telnet ip 23 -- working -- ok -- but why telnet dont use port 23 by default
>ping localhost --error unknown host

files in /etc/:
-----------------file host.conf
order hosts,bind
multi on

-----------------file hosts pcname localhost.localdomain localhost

-----------------file resolv.conf

----------------- file nssswitch.conf
hosts: files dns

Is there solution to my problem ?

antti arrak
from estonia

I user Fedora Core 2

Last edited by paha; 10-01-2004 at 06:53 AM.
Old 10-01-2004, 09:29 AM   #2
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Have you tried running tcpdump to see whats happening when you run telnet/ping? My point being - there is only one resolver lib per system. See: man resolver and man gethostbyname. So if nslookup and host are returning the proper results, then ping/telnet should be too. I know, famous last words, but running tcpdump should help localize where your problem is occuring.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 03:39 PM
Nameservers and registering them Q mpower Linux - Networking 2 03-30-2005 08:13 PM
Nameservers -- must I use my ISP's? Apollo77 Linux - Networking 5 03-09-2004 01:45 PM
Registering nameservers Polaris2203 Linux - Networking 7 09-15-2003 09:13 PM
nameservers.... Config Linux - Networking 2 01-19-2003 07:26 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration