Slow browsing using Firefox on Ubuntu

February 22, 2007 at 9:32 pm | In Thoughts | 30 Comments
Tags:

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.

30 Comments

  1. Thanks Corey,

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

    Michelle

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

    Luchin

  3. 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. [...] IPv6 seems to speed up Firefox on Ubuntu significantly.  I found this tip at techxplorer.com Open a new tab by typing [...]

  5. 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. You made my day! Thank you so much for the tip!

  7. Nice find friend…

  8. Thank you :)

  9. 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. @ 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. 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. 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. [...] 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. 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).

  15. Many many thanks.

  16. Thanks man!

  17. Thanks from me too.

  18. [...] the author of Tech Explorer found out about it and wrote a post about how to disable this ‘feature’. It made Firefox about a hundred times more [...]

  19. Great, for the last one month or so i was facing similar problem and have switched to other browser. But this tweak has solved the problem. Thanks for the information.

    http://thatlovedflower.blogspot.com

  20. [...] Tech Explorer posits that firefox 3 is slow because it uses ipv6 by default and falls back on ipv4 since his network doesn’t support ipv6. Well I do know our networks here still hasn’t switched over to ipv6 (I wonder when will that be) so I’m quite sure his circumstances fit well with my own situation. [...]

  21. Thank you!!! This is great, I was really bummed out because I just installed Ubuntu and Firefox and it was so slow. This fixed it!!!

  22. Thanks a lot for this advise. I googled for “ubuntu slow firefox” and this was the first link google suggested, and it worked!

  23. it works!

  24. Thanks a ton. That did the trick!

  25. Thank you very much! What a difference this has made to my ubuntu browsing!

  26. does anybody know how to measure and compare the DNS resolving speed of Firefox when IPv6 is enabled and when it is disabled? I want to make sure this is not placebo effect.

  27. super fast i like it works for me in linux 8.10

    EastAfrica.
    Kenya.

  28. @ All,

    To all of you that have commented letting me know this post works for you, many thanks.

    A comment does a great deal for the confidence of a blogger.

  29. Thank! I’ve stuck with FF3 because it isn’t the memory hog FF2 was, but since speed was still a problem in 3.0.5, I was beginning to consider switching to Seamonkey or Opera, even though FF is by far my preferred browser. Now FF is usable again!

  30. [...] con Microsoft). Corey, Thoughts by Techxplorer (pensamiento para los exploradores de tecnología). [Liga] [etiquetas: Video, fireforx, flash, [...]


Sorry, the comment form is closed at this time.

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.