LinuxQuestions.org
Visit Jeremy's Blog.
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-24-2007, 09:43 AM   #1
PKumar
LQ Newbie
 
Registered: Jun 2007
Posts: 11

Rep: Reputation: 0
Unable to ping : ping: unknown host


Unable to ping google.com or ant other site or even localhost
[root@ps4 lib]# ping google.com
ping: unknown host google.com

[root@ps4 lib]# ping localhost
ping: unknown host localhost,

However, ping works with IP addresses.
[root@ps4 lib]# ping 64.233.187.99
PING 64.233.187.99 (64.233.187.99) 56(84) bytes of data.
64 bytes from 64.233.187.99: icmp_seq=1 ttl=247 time=75.3 ms
64 bytes from 64.233.187.99: icmp_seq=2 ttl=247 time=75.3 ms
64 bytes from 64.233.187.99: icmp_seq=3 ttl=247 time=75.4 ms
64 bytes from 64.233.187.99: icmp_seq=4 ttl=247 time=75.2 ms
64 bytes from 64.233.187.99: icmp_seq=5 ttl=247 time=75.3 ms
64 bytes from 64.233.187.99: icmp_seq=6 ttl=247 time=75.3 ms

--- 64.233.187.99 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 4999ms
rtt min/avg/max/mdev = 75.274/75.346/75.458/0.169 ms

PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.049 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.052 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.038 ms

--- 127.0.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.038/0.046/0.052/0.008 ms


my , /etc/resolv.conf is correct nameserver because its working for other linux box.

thanks in advance.
 
Old 10-24-2007, 03:31 PM   #2
TooSlow
LQ Newbie
 
Registered: Sep 2005
Posts: 17

Rep: Reputation: 0
PKumar- Localhost should be resolved by /etc/hosts so check that file to make sure it is correct. IP looks to be correct since you can ping directly from IP.

Try moving the order of your DNS servers in resolv.conf and set another one at the top, to see if it helps. If it doesn't, try to do a manual lookup from a terminal window to see if the DNS server(s) are allowing you to connect and are willing to resolve names for you. I can't remember how to do it off the top of my head. In Windows it is nslookup, can't recall how to do it in Linux. Sorry I can't be more help, but that should at least point you in the right direction.

Actually (just thought of this) also compare the /etc/hosts files on the two Linux boxes, it may point you to the problem.

Last edited by TooSlow; 10-24-2007 at 03:33 PM.
 
Old 10-30-2007, 04:53 AM   #3
PKumar
LQ Newbie
 
Registered: Jun 2007
Posts: 11

Original Poster
Rep: Reputation: 0
hi, thanks I got the sol, its problem with my ISP level. thanks
 
Old 10-30-2007, 07:25 AM   #4
TooSlow
LQ Newbie
 
Registered: Sep 2005
Posts: 17

Rep: Reputation: 0
Pkumar - Great to hear you solved it! If you have time, could you give a bit more detail in case others do a search and come across this post? Your solution will likely help others as well!
 
Old 10-31-2007, 12:43 AM   #5
PKumar
LQ Newbie
 
Registered: Jun 2007
Posts: 11

Original Poster
Rep: Reputation: 0
my mistake :

File name, is /etc/resolv.conf and not /etc/resolve.conf.

I made the file /etc/resolve.conf and tried hard to fix the problem, but after 2-3 days suddenly I noticed my mistake.

Once, I renamed the file then its worked.

So, moral of the story : Always check the basic thing carefully before moving to next higher step.

And thanks for your help.
 
  


Reply


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
Slackware 10.2 - ping: unknown host TBomb Linux - Networking 4 04-17-2006 06:50 PM
ping: unknown host www.google.com juanjavier_xxx Debian 8 01-02-2006 01:47 PM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
ping: unknown host in local intranet linuxjustin Linux - Networking 3 04-04-2004 02:03 PM
Unknown Host <Linuxmachinename> / Unable to ping by host name nishi_k_79 Linux - Networking 4 11-01-2003 01:24 PM

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

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration