dns精选器
基本功能
为被dns污染的站点自动匹配最佳ip地址
功能特性
- 多线程
- 本地模式和网络模式获取ip
- ip存活检验测速
- 读取文件批量识别
- Linux自动更新hosts
- Windows自动更新hosts
环境要求
需要python3.7+环境
运行
Linux
./Host-chooser-linux [-h] [-t TARGET] [-r READ] [--clean]
                  [--area [{china,asia,europe,africa,oceania,north_america,south_america}]]
                  [--thread THREAD]
Windows
首先安装依赖
pip install -r requirement.txt
python main.py [-h] [-t TARGET] [-r READ] [--clean]
                  [--area [{china,asia,europe,africa,oceania,north_america,south_america}]]
                  [--thread THREAD]
参数解释
- -h获取基本使用方法
- -t选择目标域名
- -r批量读取- 文件内的目标域名进行dns解析并批量输出 
- --clean显示详细信息
- --area选择所需要的的地区/区域
- --thread选择所需要的进程数(默认为3)
- --update在linux下,更新hosts中的dns
- --auto开启crontab 定时自动更新hosts