• 2020-11-17
  • 0
  • 7


2020 年10月之后,突然之间,类似 *.github.io 的网站都打不开,而且是手机电脑连接同一个WIFI,都打不开,也是很奇怪,突然就这样了;后来我发现不同地方的网络有点可以打开,有的不能打开,我猜是 DNS 解析的问题了;我在网上找到的几种方法:重启路由器让他自动切换有效 ip、设置 VPN、科学上网等,但都不起作用,下面介绍生效的办法。

修改 host 文件

  1. 打开网址 http://tool.chinaz.com/dns 输入你要访问的 githubpage 的网址,比如 alvinyw.github.io
  2. 点检 “检测” 按钮,如果没有 IP,多刷几次就可以了,下面会出现检测出来的 ip 列表;
  3. 然后从上面 ip 列表中选取一个(我一般选第一个)按下面格式修改hosts文件:
    # github react-guide.github.io alvinyw.github.io
  4. 刷新站点就可以访问啦。

  1. host 文件位置一般是:C:\Windows\System32\drivers\etc;
  2. host 文件要用管理员权限才能编辑,或者可以拷贝到左面编辑在拷贝回去;


  • erotik回复

    It is suitable opportunity to have some preparations for the near future. I have scan this blog post and if I may just, I desire to recommend you couple intriguing advice. Lindy Paquito Bette-Ann

  • erotik回复

    I was extremely pleased to find this site. I wanted to thank you for ones time for this wonderful read!! I definitely appreciated every part of it and i also have you saved to fav to check out new stuff in your website. Charmain Ford Arluene

  • escort bayan回复

    Hi there mates, good article and pleasant urging commented here, I am actually enjoying by these. Ilse Nial Giulio

  • escort bayan回复

    If you are going for finest contents like myself, only go to see this website every day as it gives quality contents, thanks Carrissa Addy Cadmar

  • erotik回复

    Wow really glad i came across your internet site, i??ll be sure to visit back now i??ve bookmarked it??. Dorian Clevey Violeta

  • 10 mg cialis capsules回复

    This is the perfect web site for anyone who wants to understand this topic. Melinda Slade Hylton

  • facial cumshots回复

    Everyone loves it when people come together and share opinions. Great site, stick with it! Georgianne Elijah Pesek