Can no longer connect to Internet - can use on home network

Peter Garrett peter.garrett at optusnet.com.au
Thu Aug 10 11:08:50 UTC 2006


On Thu, 10 Aug 2006 11:25:20 +0100
Nigel Eke <ulist at gs1.ubuntuforums.org> wrote:

> 
> Checking out the 'Threads with similar content' I have at least
> determined this is related to DNS.
> 
> 
> 
> I can use firefox to get to http://64.233.187.99/ but not
> http://google.com/.
> 

If you are behind a router, check that the router has a DNS function, and
make sure that its IP is listed in the file /etc/resolv.conf  This file
should contain a primary and secondary nameserver IP  - often the first
entry is for the router. For instance, my router has the IP 10.1.1.1 so
my /etc/resolv.conf would look something like

nameserver 10.1.1.1
nameserver xx.xxx.xx.xx
nameserver xx.xxx.xxx.xxx

where "xx..." stands for the IPs of my ISP's primary and secondary
nameservers. ( Actually it doesn't look like that since I have dnsmasq
installed, but that would work )

If your machine's IP is assigned automatically by DHCP, you might see
something more like

search domain.invalid
nameserver 10.1.1.1
nameserver 10.1.1.1

where the domain name and IPs are assigned by the router - of course your
router might have an IP of 192.168.0.1 or something similar, so substitute
accordingly. Your ISP should have supplied you with nameserver IPs, or you
can usually find them on the ISPs website.

This should fix your DNS woes - just restart the networking and you should
be O.K. 

By the way, if you prefer not to edit files directly, you can enter your
nameserver IPs in System - Administration - Networking under the DNS tab.

Peter




More information about the ubuntu-users mailing list