FIXED: Firefox 6+ and Slow Browsing on Lion

[contentblock id=2]

I recently upgraded to MacOS X Lion.  Shortly after that Firefox automatically updated to v6.  I began to experience slow DNS lookups.

When you enter a URL into your web browser or click a link to a web page, the first thing it does is ask your DNS servers where that URL points to.  Specifically it is looking for the domain name (domainname.com, .net, .org, etc).  The DNS server then responds with an IP address which points your browser to it’s target destination which allows the downloading to begin.

For the sake of speed optimization, many websites today use more than one web server to deliver their images and various other files on their pages.  One web page may have 3 or more different domains to resolve.  If each DNS look up takes 2 seconds, you are looking at 6 seconds of lookup time!  Say nothing about the download time.  This is why it’s a good to use a service like OpenDNS or Google Public DNS.  Often, doing so will noticeably speed up web browsing.

In my particular situation Firefox was trying to take advantage of IPv6 before trying IPv4 which is good and bad.  Good for the future of the internet but bad for today’s internet because IPv6 is not in use everywhere yet.

PROBLEM:

  • Firefox 6 slow DNS lookups due to priorization of IPv6 over IPv4

THE FIX:

  1. Enter “about:config” into the URL bar
  2. Click “I’ll be careful, I promise”
  3. Enter “DNS” in the filter (just below the URL)
  4. Double-click on “network.dns.disableIPv6” in the list, setting the value to “True”
  5. Close and restart Firefox

This dramatically increased the speed of my web browsing.  I tested this by enabling and disabling the setting several times just to make sure it wasn’t a network hiccup or somehow related to OpenDNS since I use them.

17 Replies to “FIXED: Firefox 6+ and Slow Browsing on Lion”

  1. Thanks for this fix I tried different dns servers with no change. This also helps in firefox 7.

  2. Thanks for this tip. I just upgraded to OS X Lion last night and my Firefox 7 was taking too long to load web sites. It’s working much faster and better.

  3. I have noticed that Google seems to be on and off periodically and I think it is somehow related to this setting change. Yesterday safari would pull up google sites while Firefox would not. I changed the setting back and then Firefox could pull it up. It was able to pull up Yahoo and MSN just fine. I wonder if google is doing some IPv6 trickery behind the scenes. It wouldn’t surprise me at all since I know one of their goals is to speed up the web via their DNS project.

  4. I upgraded to Lion just a couple of days ago. I started noticing the speed almost immediately, especially Google mail. This fix of yours is like night and day. Thank you so much! BTW, running FF 9.0.1

  5. I didn’t know Firefox had a warranty. Heh heh. This simply changes a true/false setting in a configuration file. You can change it back just as easily if it doesn’t help. No harm done. Just be sure to quit and restart Firefox after making changes.

  6. Thanks for the lead.. but, this change has had no noticable effect on FF 9’s lookup time for me… right now lookups take about 6 seconds each….yet a ‘host servername’ in the commandline has no noticable delay… something else going on here.

    I think it’s time for someone to look at the code to see what is happening….

  7. Jon, are you using OpenDNS, Google Public DNS or any other DNS solution that might require IPv6? If so, consider switching back to your default ISP DNS (set it to auto on your router/modem). Let us know if you find a working solution ok?

  8. no change on my macbook (4gb 2ghz build 2008) with FF 12.0) still slow after changing dns settings to true.

  9. I haven’t experienced this issue with Chrome but you can do it like this…

    1. Enter “about:net-internals” in the URL bar (without quotes)
    2. Click the drop-down and select “DNS”
    3. Click “Enable IPv6”

    Since I haven’t experienced an issue with Chrome, I can’t tell you if this will work or not. Let us know!

Comments are closed.

Read previous post:
How to Set Up Google Adsense for Domains on Bluehost

It was supposed to be easy to set up Google Adsense for domains but for whatever reason it wasn't.  I...

Close