Hosts: 如何更新racaljk/hosts时保留自有hosts

Created on 29 Sep 2016  ·  3Comments  ·  Source: kelthuzadx/hosts

有一些hosts是开发时自己用的,在后面加了racaljk/hosts的hosts
所以结构如下:

默认host
自己的host1、2、3
racaljk/hosts

这样怎么自动单独更新racaljk/hosts的hosts?

question

Most helpful comment

更新的时候把 racaljk/hosts 放下面就行了,hosts文件优先解析最上面的规则。
需要自动更新的话,Windows 下用可以尝试这个 终端工具 Linux 下,可以试试这个脚本,手动或用 crontab 定时执行都可以。

All 3 comments

更新的时候把 racaljk/hosts 放下面就行了,hosts文件优先解析最上面的规则。
需要自动更新的话,Windows 下用可以尝试这个 终端工具 Linux 下,可以试试这个脚本,手动或用 crontab 定时执行都可以。

对于Windows 您可以使用tool

Was this page helpful?
0 / 5 - 0 ratings

Related issues

outsinre picture outsinre  ·  8Comments

oilbottle picture oilbottle  ·  3Comments

DvilAwn picture DvilAwn  ·  5Comments

lrinQVQ picture lrinQVQ  ·  5Comments

Sharkkkk picture Sharkkkk  ·  4Comments