Recently, when the company configured the android development environment and the android SDK was not updated successfully (the Google website was blocked), it tried various methods and finally succeeded. The solution was to modify C: \ windows \ system32 \ drivers \ etc \ hosts file. Add a line at the end of the file:
74.125.237.1Dl-ssl.google.com
Note that the hosts file is read-only and we do not have the permission to modify it. We need to copy the hosts file to the desktop or somewhere else, modify and save it, and copy the modified hosts file
C: \ windows \ system32 \ drivers \ etc directory. Replace the file!
The reason for this modification is that the Domain Name of the dl-ssl.google.com is blocked, and the server IP address corresponding to the domain name74.125.237.1 is not blocked. When accessing the network, the operating system first reads the configuration of the hosts file. If the IP address of the corresponding domain name is foundThe DNS server directly accesses the server.Many so-called web accelerators use hosts files. In this way, you can resolve an IP address locally without using DNS server, which saves some time.