主要功能
通过直接把域名指向主机,方便快速访问和避免DNS干扰。
使用方法
Windows使用方法
- 以管理员身份运行命令行
notepad C:\Windows\System32\drivers\etc\hosts
- 或用其它方式打开hosts文件
复制 https://raw.githubusercontent.com/ssyatelandisi/hosts/master/hosts 的内容到hosts中添加保存即可。
通过直接把域名指向主机,方便快速访问和避免DNS干扰。
notepad C:\Windows\System32\drivers\etc\hosts
复制 https://raw.githubusercontent.com/ssyatelandisi/hosts/master/hosts 的内容到hosts中添加保存即可。