Slow browsing using Firefox on Ubuntu

Network CableAs frequent visitors to my blog will know I use the Ubuntu Linux operating system at home. I also have it on a couple of small servers at MPOW. For quite some time now, probably since I moved to Ubuntu 6.10, I’ve been experiencing very slow browsing with the Firefox browser. Specifically it was taking a very long time to resolve domain names to IP addresses.

It got so frustrating, that recently I implemented a local DNS cache following the directions at the Ubuntu Blog. I noticed some improvement but it was still very slow. In exasperation tonight I did an Internet search to see if anyone else using the same ISP as I do was also experiencing the problem.

It turns out that the culprit wasn’t DNS, or my ISP, or my ADSL connection, the issue lay with Firefox itself.

Firefox was configured to try to use IPv6. IPv6 is a new version of the IP protocol, and it isn’t supported on my network. Therefore what was happening was that Firefox would try to use IPv6, wait until the request failed, and then try IPv4. To fix it I followed this procedure:

  1. Open a new tab by typing Ctrl-t
    (That’s the Ctrl key on your keyboard and the letter t key at the same time)
  2. Enter about:config in the address bar of Firefox
  3. Enter ip into the Filter: text box
  4. Look for the network.dns.disableIPv6 entry in the table below the Filter: text box
  5. Double click the network.dns.disableIPv6 entry
  6. Restart Firefox

Once Firefox was restarted the domain name to IP address resolution was exceedingly fast, no doubt helped along by the DNS caching server I’d implemented. I’m going to have to remember this little configuration change for next time.

It is entirely possible that this setting is enabled by default on other systems as well. I plan on checking my Microsoft Windows workstation tomorrow, so if you’re experiencing slow browsing you may want to check the configuration setting.

The photo of the network cable above was found using everystockphoto search engine. The photo is hosted on morgueFile.com and was uploaded by user ppdigital.

Posted in Musings. Tags: .

14 Responses to “Slow browsing using Firefox on Ubuntu”

  1. Michelle McLean Says:

    Thanks Corey,

    I’m using Windows XP and it worked a treat for me too!

    Michelle

  2. luchin Says:

    Thanks…I was about to going nuts trying to find a solution

    Luchin

  3. Wouter Veugelen Says:

    Thx for the tip! Firefox is running better now on my Kubuntu, although it still isn’t running as smoothly as firefox on my XP machine.

  4. Wouter Veugelen blog » Blog Archive » Faster Firefox browsing in Ubuntu Says:

    [...] IPv6 seems to speed up Firefox on Ubuntu significantly.  I found this tip at techxplorer.com Open a new tab by typing [...]

  5. Curtis Says:

    Thanks so much for the tip! I was about to go bald from pulling my hair out with the S-L-O-W-E-S-T browsing ever!

  6. Brian Says:

    You made my day! Thank you so much for the tip!

  7. steve Jobs Says:

    Nice find friend…

  8. Janus Says:

    Thank you :)

  9. Max Says:

    Wowwww… Firefox is now very fast on my laptop (Turion64–Ubuntu) used to be searching and searching for connection with a website, now almost instantanius.
    Thanks a lot!!!

  10. techxplorer Says:

    @ All who have commented

    I’m glad the post has helped.

    Comments keep reminding me why I post this sort of stuff to my blog.

  11. Mike Says:

    Holy crap man! Thank you so effing much! It was taking me 10 seconds to load Google!

    Now all is well (and Google loads almost instantly) !

    :)

  12. Gizzard Says:

    What can I say? Such a simple solution - I actually feel like browsing the web again! Why oh why do the folks set Firefox to use IPv6 as default??
    Thanks a bundle.

  13. Bắt đầu với Ubuntu Hardy 8.04 « Moriator - I can do it! Says:

    [...] Firefox 3 chạy có vẻ chậm, thanh cuộn chạy lên chạy xuống không được mượt lắm. Mình đã tìm được cách tăng tốc Firefox 3 tại đây [...]

  14. Brad Landis Says:

    Great tip! IPv6 is a good thing, but since it’s not available yet (at least to us peons), I figure I might as well disable it. I’ll just have to remember to change it back in 10 years when they get it changed (but then again, I probably will have erased my system by then).

Leave a Reply