Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I had Ubuntu 11.10 previously with no connection issues. I reformatted (I didn't upgrade) and installed Ubuntu 12.04.

Now web pages take a long time to start loading. When I visit google.com it can take up to 10 seconds before it starts loading. Once it starts loading, it loads very quickly. The same goes with all other websites.

I've tried several suggestions I've found online with no success.

I've tried disabling dnsmasq as suggested here: http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/

I've tried setting my DNS servers to google's open dns: 8.8.8.8 and 8.8.4.4.

Anyway, here is some info about my system:


$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
#NetworkManager#iface eth0 inet dhcp

dns-nameservers 8.8.8.8 8.8.4.4

$ nm-tool
...

- Device: eth0  [Wired connection 1] -------------------------------------------
  Type:              Wired
  Driver:            e1000e
  State:             connected
  Default:           yes
  HW Address:        5C:26:0A:1D:E6:57

  Capabilities:
    Carrier Detect:  yes
    Speed:           1000 Mb/s

  Wired Properties
    Carrier:         on

  IPv4 Settings:
    Address:         10.40.113.139
    Prefix:          24 (255.255.255.0)
    Gateway:         10.40.113.1

    DNS:             8.8.8.8
    DNS:             8.8.4.4
share|improve this question
    
Is your Ubuntu install running as the guest in (VirtualBox?) VM? (If so, what OS is the host?) –  irrational John May 10 '12 at 6:33
add comment

1 Answer 1

up vote 1 down vote accepted

Ok I found my issue.

After using a VPN client (Network Connect), the /etc/resolv.conf symlink was replaced with an actual file. Some DNS servers were prepended to this file before my 8.8.8.8 and 8.8.4.4 dns servers. So, web pages were taking a long time because they were waiting for those other entries to timeout before my dns settings were used.

Anyone know what the /etc/resolv.conf symlink is supposed to point to? Right now I just manually edited the file, but I'd prefer to use Ubuntu's default network setup if I can.

share|improve this answer
    
The symlink should point to: ../run/resolvconf/resolv.conf –  takeshin Jan 11 '13 at 14:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.