修改 DNS 配置加速Github访问
1.3、设置Hosts文件和刷新
- 文件地址:C:\Windows\System32\drivers\etc\hosts
- 文件权限:Right Click> Properties> Security
-
- 文件修改:注意域名后不要有
- 域名刷新(Windows):[cmd] ipconfig /flushdns
- (Mac): sudo killall -HUP mDNSResponder
1.4、配置IP和域名的本地映射文件hosts文件
220.181.38.149 yyy.niubility.com
127.0.0.1 xxx.niubility.com
1.5、本地域名刷新
1.6、测试本地域名是否配置成功
[E:\software_install\nginx-1.18.0]$ ping xxx.niubility.com
[E:\software_install\nginx-1.18.0]$ ping yyy.niubility.com
# GitHub520 Host Start 140.82.112.26 alive.github.com 140.82.113.6 api.github.com 185.199.109.153 assets-cdn.github.com 185.199.111.133 avatars.githubusercontent.com 185.199.111.133 avatars0.githubusercontent.com 185.199.111.133 avatars1.githubusercontent.com 185.199.111.133 avatars2.githubusercontent.com 185.199.111.133 avatars3.githubusercontent.com 185.199.111.133 avatars4.githubusercontent.com 185.199.111.133 avatars5.githubusercontent.com 185.199.111.133 camo.githubusercontent.com 140.82.112.22 central.github.com 185.199.111.133 cloud.githubusercontent.com 140.82.114.10 codeload.github.com 140.82.114.21 collector.github.com 185.199.111.133 desktop.githubusercontent.com 185.199.111.133 favicons.githubusercontent.com 140.82.112.3 gist.github.com 52.216.53.225 github-cloud.s3.amazonaws.com 52.217.123.73 github-com.s3.amazonaws.com 52.217.140.193 github-production-release-asset-2e65be.s3.amazonaws.com 16.182.74.129 github-production-repository-file-5c1aeb.s3.amazonaws.com 16.182.72.249 github-production-user-asset-6210df.s3.amazonaws.com 192.0.66.2 github.blog 140.82.114.4 github.com 140.82.112.17 github.community 185.199.111.154 github.githubassets.com 151.101.1.194 github.global.ssl.fastly.net 185.199.109.153 github.io 185.199.111.133 github.map.fastly.net 185.199.109.153 githubstatus.com 140.82.112.26 live.github.com 185.199.111.133 media.githubusercontent.com 185.199.111.133 objects.githubusercontent.com 13.107.42.16 pipelines.actions.githubusercontent.com 185.199.111.133 raw.githubusercontent.com 185.199.111.133 user-images.githubusercontent.com 13.107.246.40 vscode.dev 140.82.114.21 education.github.com # Update time: 2024-04-23T14:06:04+08:00 # Update url: https://raw.hellogithub.com/hosts # Star me: https://github.com/521xueweihan/GitHub520 # GitHub520 Host End