admin 管理员组

文章数量: 1184232

声明:这种方法仅仅适用于能够访问github网站只不过是访问速度慢这一现象.

配置操纵

映射文件存放于(Windons系统): C:\Windows\System32\drivers\etc\hosts

以管理员身份运行命令行(目的是为了修改hosts文件中的内容),在命令行中依次输入以下代码。

cd drivers\etc
notepad hosts

将下列配置信息黏贴到hosts文件的最后面。

# GitHub related website
    140.82.112.4        github
    199.232.69.194         github.global.ssl.fastly
    140.82.113.4         gist.github
    185.199.108.154        help.github
    185.199.108.154        docs.github
    185.199.109.153        desktop.github
    34.201.80.84        vscode-auth.github
    140.82.113.21        education.github
    140.82.114.17        status.github
# GitHub related website

完成上述步骤后,Ctrl+S保存。输入 ipconfig /flushdns,刷新DNS解析缓存。

ipconfig /flushdns

输入ping github,丢包率较低,在浏览器中访问github网址,速度明显提升。

ping github

参考博客

加速访问GitHub:优化DNS解析与本地hosts设置-CSDN博客

本文标签: GitHub DNS