一、找到Host文件
進(jìn)入目錄C:\Windows\System32\drivers\etc
并打開host文件

查看原始的文件內(nèi)容。如下,

就是要將新的host添加到文件后面
二、查詢IP地址
訪問地址一
http://github.global.ssl.fastly.net.ipaddress.com/#ipinfo
查看IP地址

http://github.global.ssl.fastly.net
訪問地址二
https://github.com.ipaddress.com/#ipinfo
查看IP地址

https://github.com
三、填入host文件并保存
199.232.5.194 github.global.ssl.fastly.net
192.30.253.133 github.com

保存
四、令host生效
在cmd里輸入如下指令
ipconfig /flushdns

完成
附加:
域名查詢網(wǎng)址: