Dns-prefetch-dns Pre-resolution technology

Source: Internet
Author: User
Tags prefetch
Today, when I look at the source code of a website, I found the <link rel= "Dns-prefetch" href= "//static.tuweia.cn/" a little curious about dns-prefetch, because more than once, Today, I can't help but see what technology he really is.

Here is a brief description of Dns-prefetch found on the internet.

DNS implements the mapping of domain names to IP. Access to the site through the domain name, each request to do DNS resolution. At present, the DNS resolution is usually below 200ms each time. For DNS resolution of time-consuming problems, some browsers use DNS Prefetch to improve the fluency of access.

What is DNS Prefetch?
DNS Prefetch is a DNS pre-resolution technology, when you browse the Web page, the browser will load the page when the domain name in the Web page to resolve the cache, so that you click on the current page of the connection does not need to DNS analysis, reduce user latency, improve the user experience.

Currently, the browser that supports DNS Prefetch has Google Chrome and Firefox 3.5 so how do you control the browser-side domain name on the server side?
If you want the browser to resolve a particular domain name, you can add a link tag to the page to implement. For example:

<link rel= "Dns-prefetch" href= "www.ytuwlg.iteye.com"/>  
If you want to control whether the browser side of the domain name for the pre-resolution, you can use the HTTP header X-dns-prefetch-control properties for control.

Unfortunately, the only Google Chrome and firefox3.5 to support the above tag are the details of the DNS Prefetch in Google Chrome:
Http://dev.chromium.org/developers/design-documents/dns-prefetching


In Chrome, you can enter ABOUT:HISTOGRAMS/DNS in the Address bar. Prefetchfoundname and About:dns to view the current browser's pre-resolution data.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.