| Crates.io | updatehosts4r |
| lib.rs | updatehosts4r |
| version | 1.0.0 |
| created_at | 2025-10-20 08:35:21.644862+00 |
| updated_at | 2025-10-20 08:35:21.644862+00 |
| description | Command-line utility to update and manage the system hosts file. |
| homepage | |
| repository | https://github.com/qchen-fdii-cardc/updatehosts4r |
| max_upload_size | |
| id | 1891600 |
| size | 55,714 |
Only needed for Windows users in China. Chinese Documentation
程序的功能很简单,就是下载hosts文件,然后解析出域名和对应的ip,然后ping这些ip,选择最快的ip,然后更新hosts文件。
graph TD
A[下载hosts文件] --> B[解析出域名和对应的ip]
B --> C[ping这些ip]
C --> D[选择最快的ip]
D --> E[更新hosts文件]
E --> F[刷新DNS缓存]
稍微好玩一点就是有:下载hosts文件、ping每个域名对应的多个ip选择最快的一个。