LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-01-2004, 05:49 AM   #1
paha
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 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

Last edited by paha; 10-01-2004 at 05:53 AM.
 
Old 10-01-2004, 08:29 AM   #2
scowles
Member
 
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.
 
  


Reply



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 02:39 PM
Nameservers and registering them Q mpower Linux - Networking 2 03-30-2005 07:13 PM
Nameservers -- must I use my ISP's? Apollo77 Linux - Networking 5 03-09-2004 12:45 PM
Registering nameservers Polaris2203 Linux - Networking 7 09-15-2003 08:13 PM
nameservers.... Config Linux - Networking 2 01-19-2003 06:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:45 PM.

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