1.

Solve : Ubuntu Server, Problem resolving domains.?

Answer»

I have a Ubuntu 12.04 machine, and for some reason, doing Code: [SELECT]ping google.com returns Code: [Select]ping: unknwn host "google.com"
But if i use any IP, such as google's, it works.

I think this WOULD be a problem with the "HOSTS" file or something like that.

Anyway, if you have any ideas, that would be great. Thanks. Clearly your machine's DNS is not set up correctly.  What's in the file /etc/resolv.conf?That file was empty. I found the solution to place "nameserver 192.168.1.1" in that file. This has worked so far. It sounds like you aren't getting your DNS server when you get your IP adress, is your network adapter set to receive addresses from a DHCP server? You can check by looking at /etc/network/interfacesDo one thing ,, JUst add nameserver 8.8.8.8 in your (VI /etc/resolv.conf  )



Discussion

No Comment Found