LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unknown host error in ubuntu 10.04 !! Please help me !! Bit Argent !! (https://www.linuxquestions.org/questions/linux-newbie-8/unknown-host-error-in-ubuntu-10-04-please-help-me-bit-argent-4175440753/)

bala.linuxtech 12-10-2012 12:41 AM

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

shivaa 12-10-2012 01:15 AM

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.

rylan76 12-10-2012 01:16 AM

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.

bala.linuxtech 12-10-2012 01:18 AM

Quote:

Originally Posted by shivaa (Post 4846021)
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

bala.linuxtech 12-10-2012 01:29 AM

Quote:

Originally Posted by rylan76 (Post 4846022)
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

malekmustaq 12-10-2012 01:50 AM

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.

bala.linuxtech 12-10-2012 01:57 AM

Quote:

Originally Posted by malekmustaq (Post 4846034)
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 !!


All times are GMT -5. The time now is 01:14 PM.