Graduation Design Progress 001--google Search

Source: Internet
Author: User
Tags domain name server

First, the method:

1. Under the C:\WINDOWS\SYSTEM32\DRIVERS\ETC directory, modify the Hosts file:

2. Start-to-run input cmd, in cmd window input: Ipconfig/flushdns

Second, change the principle of the Hosts file (pick self-knowledge, Link: http://www.zhihu.com/question/19782572/answer/12946786)

In order to facilitate user memory, we will turn IP into a domain name to enter into the browser for access. This makes it possible to visit a website first by resolving its domain name to IP. DNS (domain name Server) is the role of IP resolution, the domain name corresponding to the IP.
Of the 5 blocking methods great FireWall, there is a simple and effective way to do so is DNS pollution. GFW will interfere with the DNS parsing process, which will cause some of the disturbed domain names to return an incorrect IP address to your host, so that you cannot properly connect to the server you want to read the correct information.
The Hosts file was originally used to improve parsing efficiency. Before a DNS request is made, the system checks to see if there is an address mapping relationship in its own Hosts file, and if so, calls this IP address mapping if no domain name resolution is presented to the known DNS server. This means that the Hosts request level is higher than DNS. When you have a corresponding IP in your Hosts file, it will directly access that IP instead of using DNS.
So when we directly put Google, Twitter, Facebook and other IP into the Hosts file, you can skip the DNS resolution this step, directly on the line of IP access, not affected by GFW DNS pollution interference.
Add one, that is why the Hosts IP to change from time to time, why FB, Twitter will still not go. is because of GFW's second big trick, IP blocking. For example, access to a foreign IP can not access, Ping, tracert this IP after the discovery, all around the edge router (GFW) is intercepted. In other words, the GFW directly intercepts packets with this IP header. So, if you change the IP is blocked, even if you cross the DNS this level, still can not turn over GFW. third, the operation result:

Graduation Design Progress 001--google Search

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.