preface
As programmers who like to get things done, we’ve always found GitHub to be our programming pleasure. GitHub is notoriously slow to access, especially without proxies. Sometimes even if we are lucky enough to get into GitHub, some image resources will not load, which still reduces the pleasure of browsing to some extent. Here is a simple way to solve the problem of slow access to GitHub — actively modify the hosts file.
You are advised to quickly change the hosts configuration tool, switchhosts
Switchhosts is a small tool for managing and quickly switching Hosts. You can switch the host configuration at will. The actual effect picture is as follows:
here
The solution
(1) Perform DNS resolution on github.com. Go to tool.chinaz.com/dns and type github.com in the input box to parse.
Select a response IP address with a smaller TTL based on the result of the resolution
(2) Open Switchhosts as an administrator. Create a new configuration item named GitHub (whatever you want by the way) and enter the corresponding configuration. The actual structure is IP github.com (this is the IP we selected in (1)). Here’s what I configured:
github.com
What should I do if THE IP address becomes invalid and I cannot access GitHub?
If the IP address is found to be invalid after the first configuration, we simply repeat step (1) to obtain a new IP address and overwrite the previously configured IP address.