访问 http://tool.chinaz.com/dns?type=1&host=github.com&ip= ,找对TTL比较低的IP写入hosts配置文件(/etc/hosts):
192.30.255.112 github.com
执行:
sudo killall -HUP mDNSResponder
重新打开浏览器,使用新的DNS设置。