Firefox and DNS prefetching – I read about this being a feature in Google Chrome, but I wasn’t sure if it was, yet, a feature of Firefox. It is in Ff 3.5. Here you can find a list of the new features in Firefox 3.5.
What is DNS prefetching? – It is the process of requesting domain name and IP address resolution used in links, images, documents and other content linked to from a page a web surfer is currently browsing. Theoretically, by taking care of the name resolution before a surfer desires to navigate to a file or another page from a link on the current page can save fractions to X number of seconds. Name resolution being out of the way the surfer should arrive at its next destination faster. The former is my definition and understanding of DNS prefetching. In my experience, at leased in Google Chrome, I am able to see performance improvements.
I needed to know how can I tell if it is on or off. In Google Chrome it is in the options menu and it can easily be turned on and with a simple check-mark click.
But, in Firefox this is not a function in the options menu. At leased not at this time.
To control it you will have to go to the about:config in your address bar. If this is you first time going to the config panel then Firefox will give you a warning. Something about “voiding your warranty”, which I don’t quite get. Any ways, just click the “I will be careful button” to access the config panel.
By typing in the filter text filed you will be able to actively filter all other setting but the one you are looking for. In this case you are looking for network.dns.disablePrefetch. My installation of Firefox is an old one with upgrades added over time. For some reason I did not have the above parameter in my configuration. I’m guessing it is either because DNS prefetching comes turned on and there is no need to add a On/Off switch or it simply was not created during the upgrade to Ff 3.5. In any case, if you want to turn off the DNS prefetching feature or, like me, you want to make sure it is on, and the parameter is not there, you will have to create it. To do so right click on a white space in the config panel and hover down to New > Boolean. In the “New boolean value” text box that pops up enter network.dns.disablePrefetch then click OK. In the next box select false. The result will be a user set parameter.
That’s it. Enjoy faster browsing.
Source: Controlling DNS prefetching