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 have an Ubuntu 12.04 LTS VirtualBox guest running on a Windows 7 host. Until recently it had been working flawlessly1.

Since a few days ago, however, web browsing in this Ubuntu VBox has been extremely slow (so much so that many pages never finish loading). This sluggishness is confined to the Ubuntu VBox; I experience no slowdown at all in the Windows host. (This rules out server-side problems and problems with the internet connection.)

I have reason to believe that the problem has to do with the Ubuntu VBox's DNS resolution, because the sluggishness started right after I had to run sudo dpkg-reconfigure resolvconf. I posted a question about this at that time.

That said, I can't figure out what I could have broken by doing this, since, besides answering 'Yes' in the dpkg-reconfigure resolvconf dialog (described in that earlier question), I did not make any other changes to my DNS resolution configuration.

In any case, it was after doing this sudo dpkg-reconfigure resolvconf and rebooting the Ubuntu VBox, that I noticed that web browsing had become, on average, very slow.

A typical experience is that, using Firefox (for example) I do a Google search (which is usually reasonably quick2), then I click on any one of the top hits, and then the looong wait begins. This wait is long enough that, before it's over, I have time to switch to the Windows 7 host, repeat the same Google search (using Firefox again), click on the same hit that I'd just clicked while in the Ubuntu guest, instantly retrieve the desired, read whatever I needed to read, and switch back to the Ubuntu guest. (If nothing else, this confirms that whatever the problem is, it is confined to the current configuration of the Ubuntu guest.)

How can I troubleshoot this problem further (and hopefully fix it)?


1 As an aside, let me express my admiration for VirtualBox. Wow, what an impressive piece of software!
2 Interestingly, the first few Google searches I did after reconfiguring resolvconf and rebooting were slow-as-molasses, but eventually they got faster. My guess is that (consistent with my suspicions of the current DNS setup) this observed speed-up is due to caching of some key IP addresses.

share|improve this question

1 Answer 1

OK, I found an (excellent) answer to my question, here.

It turns out that the only non-comment line in my /etc/resolv.conf file was

nameserver 127.0.0.1 

...which coincides with the situation presented in that other thread.

In my case, the problem was resolved by performing only the first adjustment suggested in that answer, namely:

  1. run sudo gedit /etc/NetworkManager/NetworkManager.conf;
  2. comment out the dns=dnsmasq (→ # dns=dnsmasq);
  3. run sudo restart network-manager.
share|improve this answer
1  
You are possibly a victim of this bug: bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1003842 –  jdthood Aug 29 '13 at 11:59
    
@jdthood: ++Thanks, that's good to know. –  kjo Aug 29 '13 at 12:20

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.