About a slow access speed optimization

About a slow access speed optimization

Optimization idea: bypass the DNS resolution by directly binding on the local host

principle

The early development of the Internet, due to the smaller network size, the use of a host file for name resolution, so the host has a hosts file. With the continuous expansion of the network, the host file starts unable to meet demand, the Domain Name System DNS (Domain Name System) came into being, domain name resolution by the DNS server is complete. Ever since, today, you do not only need to enter the IP address can be entered www.baidu.com Baidu.

However, the hosts file still exists in our computer, domain names and corresponding IP to join in the hosts file can skip DNS resolution, faster response efficiency.

To github site, for example (https://github.com)

(1), open the browser DNS query site http://tool.chinaz.com/dns , we enter github.com, as shown below:
Here Insert Picture Description

(2), hit detection, at the bottom of the results list, select the TTL value of the IP address 192.30.255.113 small

(3), then we open the local computer's C: \ Windows \ System32 \ drivers \ etc directory, find the file hosts

(4), we use a text editor to open the hosts file, and add the following information at the end of the line in the file:

192.30.255.113 github.com

Published 33 original articles · won praise 1 · views 2288

Guess you like

Origin blog.csdn.net/qq_40805620/article/details/101121864