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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-10-2012, 12:41 AM
|
#1
|
|
Member
Registered: Nov 2012
Location: Bangalore
Distribution: RHEL and Centos
Posts: 79
Rep: 
|
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
|
|
|
|
12-10-2012, 01:15 AM
|
#2
|
|
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,676
|
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.
|
|
|
|
12-10-2012, 01:16 AM
|
#3
|
|
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,469
Rep:
|
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.
|
|
|
|
12-10-2012, 01:18 AM
|
#4
|
|
Member
Registered: Nov 2012
Location: Bangalore
Distribution: RHEL and Centos
Posts: 79
Original Poster
Rep: 
|
Quote:
Originally Posted by shivaa
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
|
|
|
|
12-10-2012, 01:29 AM
|
#5
|
|
Member
Registered: Nov 2012
Location: Bangalore
Distribution: RHEL and Centos
Posts: 79
Original Poster
Rep: 
|
Quote:
Originally Posted by rylan76
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
|
|
|
|
12-10-2012, 01:50 AM
|
#6
|
|
Senior Member
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,189
|
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.
|
12-10-2012, 01:57 AM
|
#7
|
|
Member
Registered: Nov 2012
Location: Bangalore
Distribution: RHEL and Centos
Posts: 79
Original Poster
Rep: 
|
Quote:
Originally Posted by malekmustaq
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 !!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:35 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|