1.在ipaddress 网站查找一下github的dns 并复制到/etc/hosts
https://www.ipaddress.com/website/github.com/
140.82.113.4 github.com
185.199.108.133 raw.githubusercontent.com
#185.199.109.133 raw.githubusercontent.com
#185.199.110.133 raw.githubusercontent.com
#185.199.111.133 raw.githubusercontent.com
185.199.108.153 assets-cdn.github.com
#185.199.109.153 assets-cdn.github.com
#185.199.110.153 assets-cdn.github.com
#185.199.111.153 assets-cdn.github.com
151.101.1.194 github.global.ssl.fastly.net
#151.101.65.194 github.global.ssl.fastly.net
#151.101.129.194 github.global.ssl.fastly.net
#151.101.193.194 github.global.ssl.fastly.net
并复制到/etc/hosts 下
2. 刷新本地DNS缓存(很重要 秒开)
sudo mv /etc/resolv.conf /etc/resolv.conf.bak
sudo ln -s /run/systemd/resolve/resolv.conf /etc/
sudo systemd-resolve --flush-caches