基于 hosts 方式进行 Github 访问加速
更新时间: Invalid Date | 总字数: 0 字 | 阅读时长: 0 分钟
DNS 测试工具
- https://myssl.com/dns_check.html
- https://www.itdog.cn/ping/github.com
- https://sites.ipaddress.com/github.com
Github 相关域名
text
github.com
raw.githubusercontent.com
github.global.ssl.fastly.net
github.githubassets.com
collector.github.com
api.github.com
http://github.com
http://assets-cdn.github.com
http://github.global.ssl.fastly.net修改 Hosts 文件
将查询到的内容追加到 hosts 文件,根据操作系统不同,路径分别如下:
Windows系统,hosts文件位于:C:\Windows\System32\drivers\etc\hosts。macOS、Linux系统,hosts文件位于:/etc/hosts。
刷新本机 DNS 缓存
shell
ipconfig /flushdnsshell
sudo killall -HUP mDNSRespondershell
sudo systemd-resolve --flush-caches使用 SwitchHosts 工具
SwitchHosts 是一个管理 hosts 文件的应用,可以快速进行 hosts 切换,并支持通过网络加载远程 hosts 配置。
下载安装
下载地址:https://switchhosts.vercel.app/zh/download
下载地址:https://github.com/oldj/SwitchHosts/releases
远程 Hosts 地址
- https://github-hosts.tinsfox.com/hosts
- https://gitee.com/if-the-wind/github-hosts/raw/main/hosts
- https://raw.hellogithub.com/hosts
- https://hosts.gitcdn.top/hosts.txt
- https://gitlab.com/ineo6/hosts/-/raw/master/hosts
- https://raw.githubusercontent.com/ittuann/GitHub-IP-hosts/main/hosts
- https://raw.githubusercontent.com/maxiaof/github-hosts/master/hosts
- https://raw.githubusercontent.com/noGodPlease1/github-hosts-update/main/hosts