LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ping dont use nameservers (https://www.linuxquestions.org/questions/linux-networking-3/ping-dont-use-nameservers-237465/)

paha 10-01-2004 05:49 AM

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 delfi.ee -- gives me IP -- ok
>nslookup delfi.ee -- working -- ok
>ping delfi.ee -- error unknown host
>ping ip_nr -- working -- ok
>telnet madli.ut.ee -- error: BAD PORT
>telnet madli.ut.ee 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
127.0.0.1 pcname localhost.localdomain localhost

-----------------file resolv.conf
nameserver 194.126.101.34
nameserver 194.126.115.18

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


Is there solution to my problem ?

antti arrak
from estonia


I user Fedora Core 2

scowles 10-01-2004 08:29 AM

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.


All times are GMT -5. The time now is 07:33 AM.