Luoxin / UpdateHosts-Github

dns query and ping fatest dns about github, refresh into hosts file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UpdateHosts-Github

起源于 update_hosts 项目,换了个golang做了份重构

使用方式

  • 下载二进制包,已管理员方式运行

Windows下报错没有修改文件权限的解决方案

方便但可能被恶意软件(比如我自己)利用的方案

  • 在文件资源管理器打开目录 C:\Windows\System32\drivers\etc
  • 选中 hosts 文件,选择 属性,将只读去掉 image

不方便但是可用的方案

  • 将工具生成的文件覆盖到C:\Windows\System32\drivers\etc\hosts

TODO

  • 进行dns查询
  • 筛选最快的ip
  • 写入到hosts文件
  • 以服务的方式运行

About

dns query and ping fatest dns about github, refresh into hosts file

License:MIT License


Languages

Language:Go 99.2%Language:Makefile 0.8%