Direct operation:

Step 1: Go to www.ipaddress.com/ and enter the following three urls to query the corresponding IP addresses.

  1. github.com
  2. github.global.ssl.fastly.net
  3. 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.

  1. Ipconfig /flushdns Flushes the DNS cache
  2. Ping github.com If the value is 0%, the setting is successful