View Full Version : [ubuntu] Server internet access oddity

September 15th, 2011, 11:50 PM

Just upgraded a Ubuntu 9 server to 10.04LTS and have a problem I can't get my head around. Basically I can't get a two way dialog going with the internet ie can't browse (using lynx) or get a file content using php. However I can SSH from server to a remote server and also SSH to my server from the remote. Ditto with ping (both IP address and canonical, so DNS is OK). I can access apache on my server from remote.

When I start lynx it usually fails with a timeout and Unable to connect to remote host message, but just occasionally can get a reply from lynx.isc.org.

Any suggestions for further tests etc?


September 16th, 2011, 03:52 PM
Check that DNS is correctly configured. Take a look at /etc/resolv.conf to make sure.

September 17th, 2011, 11:24 PM
Thanks, seems to be OK:
which is the address of my adsl router...

September 18th, 2011, 11:53 AM
What if you change it to a different one, like Google's and for example?

Further, can we have a look at outputs of:

ping google.com
ping archive.ubuntu.com

September 18th, 2011, 06:01 PM
Hi. Briefly thought there was some success- changed nameserver entry to as suggested and was able to start lynx after a brief delay. However, a second try failed.
Output of pings and ifconfig and attempt to run lynx as below:

PING google.com ( 56(84) bytes of data.
64 bytes from www.google.com ( icmp_seq=1 ttl=53 time=30.3 ms
64 bytes from www.google.com ( icmp_seq=2 ttl=53 time=30.6 ms
64 bytes from www.google.com ( icmp_seq=3 ttl=53 time=30.7 ms
64 bytes from www.google.com ( icmp_seq=4 ttl=53 time=31.1 ms

--- google.com ping statistics ---
9 packets transmitted, 9 received, 0% packet loss, time 8012ms
rtt min/avg/max/mdev = 28.983/31.187/34.123/1.308 ms

PING archive.ubuntu.com ( 56(84) bytes of data.
64 bytes from archive.ubuntu.com ( icmp_seq=1 ttl=54 time=26.2 ms
64 bytes from archive.ubuntu.com ( icmp_seq=2 ttl=54 time=23.1 ms
64 bytes from archive.ubuntu.com ( icmp_seq=3 ttl=54 time=24.5 ms
64 bytes from archive.ubuntu.com ( icmp_seq=4 ttl=54 time=24.9 ms

--- archive.ubuntu.com ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7010ms
rtt min/avg/max/mdev = 23.138/24.425/26.225/0.988 ms

eth0 Link encap:Ethernet HWaddr 00:e0:4c:fc:04:b3
inet addr: Bcast: Mask:
inet6 addr: fe80::2e0:4cff:fefc:4b3/64 Scope:Link
RX packets:104008 errors:0 dropped:0 overruns:0 frame:0
TX packets:88195 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:44181048 (44.1 MB) TX bytes:54169991 (54.1 MB)
Interrupt:20 Base address:0x6000

lo Link encap:Local Loopback
inet addr: Mask:
inet6 addr: ::1/128 Scope:Host
RX packets:834 errors:0 dropped:0 overruns:0 frame:0
TX packets:834 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:57974 (57.9 KB) TX bytes:57974 (57.9 KB)

Looking up lynx.isc.org
Making HTTP connection to lynx.isc.org
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://lynx.isc.org/

September 18th, 2011, 06:56 PM
Everything with ifconfig or ping timings seem satisfactory to me, so no clues yet. I have absolutely no experience with lynx, so cant say if there is or can be anything specific to it.

What is the brand and model of your router? Also, please try disabling IPv6 to see if some improvement occurs:


http://www.ubuntugeek.com/how-to-disable-ipv6-in-ubuntu.html (follow the third method, replacing gedit with your favourite text editor)

September 19th, 2011, 06:27 AM
This bares quite a few similarities to my problem (http://ubuntuforums.org/showthread.php?t=1846064)... Have you done any apt-get update's lately?

September 19th, 2011, 12:50 PM
Do you get a connection with:
lynx http://www.google.comWhat does this tell us?
cat /etc/network/interfacesThanks.

September 21st, 2011, 04:25 PM
Do I get a connection with google url? Not really - After some initial activity lynx asks me if I am happy to save cookies from Google. I say yes, then connection times out as before

The cat command gives:
# The loopback network interface
auto lo
iface lo inet loopback

#The primary network interface
auto eth0
iface eth0 inet dhcp