Direct operation:
Step 1: Go to www.ipaddress.com/ and enter the following three urls to query the corresponding IP addresses.
- github.com
- github.global.ssl.fastly.net
- codeload.github.com
Step 2: Find the hosts file in: C:\Windows\System32\drivers\etc on disk C of the system (Windows as an example).
Open it through a text editor, write and save the IP address of the website you have queried and the corresponding address of the website for DNS mapping.
Step 3: win+R, CMD Open the command execution window and run the following two commands.
- Ipconfig /flushdns Flushes the DNS cache
- Ping github.com If the value is 0%, the setting is successful