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 22.214.171.124 and 126.96.36.199 for example?
Further, can we have a look at outputs of:
September 18th, 2011, 06:01 PM
Hi. Briefly thought there was some success- changed nameserver entry to 188.8.131.52 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 (184.108.40.206) 56(84) bytes of data.
64 bytes from www.google.com (220.127.116.11): icmp_seq=1 ttl=53 time=30.3 ms
64 bytes from www.google.com (18.104.22.168): icmp_seq=2 ttl=53 time=30.6 ms
64 bytes from www.google.com (22.214.171.124): icmp_seq=3 ttl=53 time=30.7 ms
64 bytes from www.google.com (126.96.36.199): 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 (188.8.131.52) 56(84) bytes of data.
64 bytes from archive.ubuntu.com (184.108.40.206): icmp_seq=1 ttl=54 time=26.2 ms
64 bytes from archive.ubuntu.com (220.127.116.11): icmp_seq=2 ttl=54 time=23.1 ms
64 bytes from archive.ubuntu.com (18.104.22.168): icmp_seq=3 ttl=54 time=24.5 ms
64 bytes from archive.ubuntu.com (22.214.171.124): 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:192.168.1.7 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:4cff:fefc:4b3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:104008 errors:0 dropped:0 overruns:0 frame:0
TX packets:88195 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:44181048 (44.1 MB) TX bytes:54169991 (54.1 MB)
Interrupt:20 Base address:0x6000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:834 errors:0 dropped:0 overruns:0 frame:0
TX packets:834 errors:0 dropped:0 overruns:0 carrier: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?
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
iface lo inet loopback
#The primary network interface
iface eth0 inet dhcp
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.