DNS域名污染

GitHub网页githubusercontent地址无法访问问题

修改hosts内容

#修改hosts文件的ubuntu命令
sudo gedit /etc/hosts

讲下列的ip地址依次添加

# GitHub Start
52.74.223.119     github.com
192.30.253.119    gist.github.com
54.169.195.247    api.github.com
185.199.111.153   assets-cdn.github.com
151.101.76.133    raw.githubusercontent.com
151.101.76.133    gist.githubusercontent.com
151.101.76.133    cloud.githubusercontent.com
151.101.76.133    camo.githubusercontent.com
151.101.76.133    avatars0.githubusercontent.com
151.101.76.133    avatars1.githubusercontent.com
151.101.76.133    avatars2.githubusercontent.com
151.101.76.133    avatars3.githubusercontent.com
151.101.76.133    avatars4.githubusercontent.com
151.101.76.133    avatars5.githubusercontent.com
151.101.76.133    avatars6.githubusercontent.com
151.101.76.133    avatars7.githubusercontent.com
151.101.76.133    avatars8.githubusercontent.com
# GitHub End

Linux/Ubuntu刷新DNS缓存的方法

#刷新DNS缓存的方法
sudo /etc/init.d/networking restart

测试效果DNS域名污染_第1张图片

你可能感兴趣的:(SLAM,github,ubuntu)