ghacks Technology News

Google Chrome DNS Fetching

The Google Chrome web browser makes use of a feature called DNS fetching (sometimes also called DNS pre-resolving) which aims to speed up the user’s web browsing experience by translating domain names to IP addresses in advance.

The computer needs to resolve every domain name to an IP address to be able to make a connection to that location (and all other elements that are linked on that page). It takes an average of about 250 ms to retrieve those information from websites that are accessed for the first time.

DNS Fetching retrieves the information prior to the user’s click on a link on an already loaded page speeds up the web surfing by 250 ms on average.

That’s one of the reasons why page loads feel faster in the Google Chrome web browser. DNS Prefetching is enabled in the Google Chrome browser by default. Typing about:dns in the address bar will display prefetching DNS records.

We have identified three problems with DNS Prefetching that we would like to address below:

  • Privacy issue: Chrome will resolve all domain names on a loaded page even those that the user has no intention on clicking on. Some users might want to prevent this. The prefetched DNS records are also stored in the web browser and clearing the browsing data in the browser will not clear the prefetched data. The data is however only stored per session meaning that it will automatically be deleted once the user closes the browser.
  • Page loading problems: It happens that a web page does not load in Google Chrome displaying a “Oops! This link appears to be broken.” message instead. Reloading the page does not seem to resolve the issue and clearing the browsing data does not resolve it as well. Other web browsers on the other hand load the website just fine.

    This is an indication that DNS Prefetching is the problem here. Google Chrome cannot load a website correctly if prefetching fails (for instance by resolving the wrong IP address). Closing and reopening the browser should resolve the issue. Users who experience broken links regularly might want to consider turning off the DNS prefetching feature to resolve the issue.

  • Dns Prefetching is disabled message in about:dns even though it is enabled. The Chrome developers are randomly switching off DNS Prefetching in the browser. This issue can be resolved by closing and reopening the browser.

DNS Prefetching

DNS Prefetching can be configured in the Options of the Google Chrome browser. A click on the Tool icon in the address bar and the selection of Options from the context menu will open the Options window.

Switch to the Under The Hood tab and look for the “Use DNS pre-fetching to improve page load performance” entry.

dns pre-fetching

Should you keep the feature turned on?

That really depends. If you are experiencing page loading errors regularly you might want to consider turning it off. If you think it is a privacy issue you should also turn it off. Everyone else will benefit from the speed gains on the other hand (you might want to benchmark those).

If you are a Chrome user: Are you using DNS Prefetching? What is your experience with it?

Related Articles:

Google Chrome Stable Updated
Google Chrome Dev Hits Version 7
Google Chrome 3 Updated
Fix Oops! Google Chrome Could Not Connect To Errors
Google Chrome 2.0 released

Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook, Twitter or Google+ using the icons below.



About the Author:Martin Brinkmann is a journalist from Germany who founded Ghacks Technology News Back in 2005. He is passionate about all things tech and knows the Internet and computers like the back of his hand. You can follow Martin on Facebook or Twitter.

Author: , Friday April 16, 2010 -
Tags:,


Responses so far:

  1. Chris says:

    Thanks for the post!

    I’ve been running into numerous problems with prefetching, I’d say the page loading errors popped up 3-4 times a day with relatively high usage.
    At the same time, as the article says, loading is much faster with this feature turned on.

    What’s your take on the google public dns?

  2. milo says:

    There are many privacy issues with Chrome, you can read about them online in many places. That’s why I use the latest Chromium build:
    (http://build.chromium.org/buildbot/snapshots/chromium-rel-xp/ for Windows XP users)

    If you are very concerned about privacy I would use Chromium instead and uncheck all those options (as all send data back to Google, AFAIK) as well as changing the default search provider from Google to something else.

  3. I love DNS prefetching, but what really helps is DNS caching in the OS. DNS caching is one of the first things that I enable on a new Ubuntu install.

  4. bf says:

    Firefox has extension SpeedDNS that does DNS prefetching. I have not find any visual change in loading webpages comparing to normal state ,so I uninstalled it.

  5. Great…i am impress with this thoughts,Google this new idea will be very helpful for us,DNS prefetching automatically is amazing.but i little confuse that is its a stagy of Google to know more about People work on Internet.

  6. If Google’s privacy is a concern I would recommend SRWare Iron. Main differences are described here http://www.srware.net/en/software_srware_iron_chrome_vs_iron.php and the latest version is here
    http://www.srware.net/forum/viewtopic.php?f=18&t=1280&sid=cbf981eae25fea51fe9d468d734bd14a

    Also, there’s adblock.ini file for srware here http://fanboy.co.nz/adblock/iron/

    Regards,
    Ivan K.

  7. HNicolai says:

    I’ve never got a single problem with DNS prefetching and I don’t think its a privacy issue, so it’s DNS prefetching is turned ON :)

  8. emeacham says:

    DNS Prefetching is nice for the average user, but in the case of developers, I think it’s a bad idea. In my case, the DEV environment may is not public facing, so intermittent issues occur when Google tries to override local cache info with it’s prefetch info and/or dies on the redirect. (I typically get err: 101 and err 105 in many cases)

    Just my two pennies.

Leave a Reply   Follow Ghacks   Subscribe To Comment Rss

Subscribe without commenting

© 2005-2012 Ghacks.net. All Rights Reserved. Privacy Policy - About Us