天天看點

github網站通路不了

github網站,以及其他的國外網站有時會遇到通路不了的情況,本文介紹怎麼處理這樣的問題。

一、站長工具查詢dns

通路 http://tool.chinaz.com/dns/ ,在輸入框中填寫 github.com,然後點選檢測按鈕,會列出響應ip

也可以通過 https://www.ipaddress.com/ 查詢 ip

二、修改hosts檔案

編輯c:\windows\system32\drivers\etc\hosts檔案,将列出的響應ip寫入該檔案中

# github

52.74.223.119 github.com

203.208.39.99 github.com

三、重新整理dns緩存

在cmd指令行執行 ipconfig /flushdns ,重新整理dns緩存

c:\users\test>ipconfig /flushdns

windows ip 配置

已成功重新整理 dns 解析緩存。

本文内容到此結束。

————————————————