Telescope DNS,灵活快速的DNS分组转发器
灵活快速的DNS分组转发器
GFWList
对DNS请求进行分组查找hosts -> 查找缓存 -> 匹配规则 -> 指定group处理 -> 重定向 -> 设置缓存
ts-dns.toml
(可选)并运行进程:# ./ts-dns -h # 显示命令行帮助信息
# ./ts-dns -c ts-dns.toml # 指定配置文件名
./ts-dns
kill -SIGHUP <PID> # 重载配置文件
完整配置文件参见
ts-dns.full.toml
ts-dns.toml
),开箱即用listen = ":53"
[groups]
[groups.clean]
dns = ["223.5.5.5", "114.114.114.114"]
concurrent = true
[groups.dirty]
dns = [""] # 省略
gfwlist_file = "gfwlist.txt"
# ...
[groups.clean]
dns = ["223.5.5.5", "114.114.114.114"]
fastest_v4 = true
# ...
# ...
hosts_files = ["adaway.txt"]
[hosts]
"www.example.com" = "1.1.1.1"
# ...
# ...
[groups.dirty]
socks5 = "127.0.0.1:1080"
# ...
# ...
[groups.clean]
ecs = "1.2.4.0/24"
# ...
# ...
[groups.work]
dns = ["10.1.1.1"]
rules = ["company.com"]
# ...
ts-dns.full.toml
对应说明)# ...
[groups.dirty]
ipset = "blocked"
ipset_ttl = 86400
# ...