Github access slow solution

To add a mapping in the local host file, the steps are as follows:

1. Open the hosts file with a text editor, located in the C:\Windows\System32\drivers\etc directory;
path under Linux: /etc/hosts

2. Open http://tool.chinaz.com/dns, this is a tool for querying the mapping of domain names

3. Query the two addresses of github.global.ssl.fastly.net and assets-cdn.github.com

4. Check several times, choose a stable, low-latency ip and add it to the host file as follows

5. Save the file

6. Refresh DNS

ipconfig /flushdns  // ipconfig和/flushdns之间有个空格才行
  • 1

host file:

# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#   127.0.0.1       localhost
#   ::1             localhost

# github
192.30.253.112 assets-cdn.github.com
151.101.88.249 github.global.ssl.fastly.net
192.30.253.113 github.com
151.101.184.133 assets-cdn.github.com
185.199.108.153 documentcloud.github.com
192.30.253.118 gist.github.com
185.199.108.153 help.github.com
192.30.253.120 nodeload.github.com
151.101.184.133 raw.github.com
18.204.240.114 status.github.com
192.30.253.166 training.github.com
192.30.253.112 www.github.com
151.101.185.194 github.global.ssl.fastly.net
151.101.184.133 avatars0.githubusercontent.com
151.101.184.133 avatars1.githubusercontent.com

Guess you like

Origin blog.csdn.net/weixin_40013817/article/details/109383690