https://github.com/ineo6/hosts
使用指南
基于 DNS 更新 hosts 文件
- 首先将原有 dns 备份.
- 拉取最新的 hosts 文件拷贝到最新的
/etc/hosts中
目前使用的地址是 https://gitlab.com/ineo6/hosts/-/raw/master/next-hosts , 可能会变
echo ' recovery hosts'
cp /etc/hosts.bak /etc/hosts
echo ' refresh hosts'
curl https://gitlab.com/ineo6/hosts/-/raw/master/next-hosts >> /etc/hosts
评论栏
分享你的想法,或参与下面的讨论。
参与讨论
支持 Markdown、代码和图片
友善交流,让讨论更有价值。
更多留言
加载中…