LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-10-2012, 12:41 AM   #1
bala.linuxtech
Member
 
Registered: Nov 2012
Location: Bangalore
Distribution: RHEL and Centos
Posts: 80

Rep: Reputation: Disabled
Red face Unknown host error in ubuntu 10.04 !! Please help me !! Bit Argent !!


Hi Geeks

I am using ubuntu 10.04 box,

Still i am facing " Unknown host: google.com " Problem while i am connecting Internet ..

checked all files,Everything is ok .. Please help me to resolve this problem guyz !! bit Argent !!

Thanks in Advanve

Regards
Bala.LinuxTech
 
Old 12-10-2012, 01:15 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 285Reputation: 285Reputation: 285
Are you using Ubuntu in VM or as standalone OS? If it's in VM then probably there's some issue with Network Adaptor settings of this VM. Once try:
Edit virtual machine settings > Select Network Adaptor group > Select Network connection tab > Select option NAT: Used to share host's IP address and leave rest options unchecked.
Then reboot and try to ping again.

Last edited by shivaa; 12-10-2012 at 01:18 AM.
 
Old 12-10-2012, 01:16 AM   #3
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,475

Rep: Reputation: 87
How are you connecting to the internet?

What do you see if you go

Code:
cat /etc/resolv.conf
in a terminal?

The error you are quoting seems to indicate that your machine is either not connected to the internet, or it cannot resolve symbolic names to IP addresses, indicating an error in name resolution configuration somewhere.
 
Old 12-10-2012, 01:18 AM   #4
bala.linuxtech
Member
 
Registered: Nov 2012
Location: Bangalore
Distribution: RHEL and Centos
Posts: 80

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shivaa View Post
Are you using Ubuntu in VM or as standalone OS? If it's in VM then probably there's some issue with Network Adaptor settings of this VM. Once try:
Edit virtual machine settings > Select Network Adaptor group > in Network connection tab > Select option NAT: Used to share host's IP address and leave rest options unchecked.
Then reboot and try to ping again.
Hi shivaa

That is not in VM , standalone only .. I am newbie for ubuntu machines, Please help me to resolve this problem ...

Thanks in advance

Regards
Bala.Linuxtech
 
Old 12-10-2012, 01:29 AM   #5
bala.linuxtech
Member
 
Registered: Nov 2012
Location: Bangalore
Distribution: RHEL and Centos
Posts: 80

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rylan76 View Post
How are you connecting to the internet?

What do you see if you go

Code:
cat /etc/resolv.conf
in a terminal?

The error you are quoting seems to indicate that your machine is either not connected to the internet, or it cannot resolve symbolic names to IP addresses, indicating an error in name resolution configuration somewhere.
Hi rylan

My /etc/resove.conf file showing only names,(I cant share that output because some security problem ) ... there is no ip in that file .. only names are there ..

What should i do ?

Thanks in advance

Regards
Bala.Linuxtech
 
Old 12-10-2012, 01:50 AM   #6
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,208

Rep: Reputation: 230Reputation: 230Reputation: 230
Quote:
" Unknown host: google.com "
Your system declares the "string" as unknown since your /etc/resolv.conf (probably) finds it there without an assignable IP value.

Clean up your resolv.conf file, put there the things only needed by the system to access the internet and be able to resolve domain names. One indispensable item there should be your ISP's Domain Name Server <this you can get from their techmen or be inferred from traceroute>, and your localhost 127.0.0.1 <this may not be necessary but advisable since other applications may want to find it there>; anything else might be valid proxies and resolvers but not necessary entries, save that which is required by the subnet or ISP policies.

Hope that helps.

Good luck.

Last edited by malekmustaq; 12-10-2012 at 01:52 AM.
 
1 members found this post helpful.
Old 12-10-2012, 01:57 AM   #7
bala.linuxtech
Member
 
Registered: Nov 2012
Location: Bangalore
Distribution: RHEL and Centos
Posts: 80

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by malekmustaq View Post
Your system declares the "string" as unknown since your /etc/resolv.conf (probably) finds it there without an assignable IP value.

Clean up your resolv.conf file, put there the things only needed by the system to access the internet and be able to resolve domain names. One indispensable item there should be your ISP's Domain Name Server <this you can get from their techmen or be inferred from traceroute>, and your localhost 127.0.0.1 <this may not be necessary but advisable since other applications may want to find it there>; anything else might be valid proxies and resolvers but not necessary entries, save that which is required by the subnet or ISP policies.

Hope that helps.

Good luck.

Thanks to all !! Problem is solved !!
 
  


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
LXer: Ubuntu's New DNS: Unknown Host LXer Syndicated Linux News 0 10-04-2012 07:21 AM
Ping: Unknown Host Not Found on Ubuntu 11 canegames Linux - Networking 9 08-14-2011 04:19 PM
Host Unknown Error:Sendmail varun2109 Linux - Server 2 09-08-2009 11:49 PM
ERROR: Unknown HOST kaub Linux - General 2 06-19-2007 01:45 AM
i m getting the error unknown host while im pinging with the host name gunjan thakkar Linux - General 2 12-14-2004 01:19 PM


All times are GMT -5. The time now is 04:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration