Some other _ stepped pit

1. solve the problem of slow part of the site open

Optimization idea: bypass the DNS resolution by directly binding on the local host:
  (1) to open the DNS query http://tool.chinaz.com/dns site in the browser, we enter github.com
  (2), click testing, the results in the list below, choose a small TTL value of the IP address 192.30.255.113 (general pulled the last side of the page more useful ip)
  (3), then we open the local computer's C: \ Windows \ System32 \ drivers \ etc directory to find the hosts file
  (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, as follows:
  192.30.255.113 github.com

PS: This approach can also be used to block ads website, 127.0.0.1 advertising site, add this to the hosts file configuration, the ads will be blocked

 

Guess you like

Origin www.cnblogs.com/dabaicai0703/p/11222420.html