Skip to content

Commit

Permalink
doc: update config file
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf-joe committed Nov 30, 2022
1 parent f7392c3 commit 3c05924
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ts-dns-full.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,24 @@ min_ttl = 60 # 最小ttl,单位为秒
max_ttl = 86400 # 最大ttl,单位为秒

[groups] # 对域名进行分组
[groups.clean] # 必选分组,默认域名所在分组
[groups.clean]
rules = ["qq.com", ".baidu.com", "*.taobao.com"] # "qq.com"规则可匹配"test.qq.com"、"qq.com"两种域名,".qq.com"和"*.qq.com"规则无法匹配"qq.com"
rules_file = "rules.txt" # 规则文件,每行一个规则
fallback = true # 设置为兜底域名组

ecs = "1.2.4.0/24" # edns-client-subnet信息,配置后转发DNS请求时默认附带(已有ecs时不覆盖),暂不支持doh
no_cookie = false # 禁用edns cookie,默认false,dnspod(119.29.29.29)等特殊服务器需要设置为true
dns = ["223.5.5.5:53", "114.114.114.114/tcp"] # DNS服务器列表,默认使用53端口
concurrent = true # 并发请求dns服务器列表
rules = ["qq.com", ".baidu.com", "*.taobao.com"] # "qq.com"规则可匹配"test.qq.com"、"qq.com"两种域名,".qq.com"和"*.qq.com"规则无法匹配"qq.com"
rules_file = "rules.txt" # 规则文件,每行一个规则

fastest_v4 = true # 选择ping值最低的ipv4地址作为响应,启用且使用icmp ping时建议以root权限允许本程序
tcp_ping_port = 80 # 当启用fastest_v4时,如该值大于0则使用tcp ping,小于等于0则使用icmp ping

redirector = "oversea_ip2dirty" # 解析后判断是否需要重定向

[groups.dirty] # 必选分组,匹配GFWList的域名会归类到该组
[groups.dirty]
gfwlist_file = "gfwlist.txt" # 匹配到gfwlist规则时使用该组

socks5 = "127.0.0.1:1080" # 当使用国外53端口dns解析时推荐用socks5代理解析
dns = ["8.8.8.8", "1.1.1.1"] # 如不想用socks5代理解析时推荐使用国外非53端口dns
dot = ["1.0.0.1:853@cloudflare-dns.com"] # dns over tls服务器
Expand Down

0 comments on commit 3c05924

Please sign in to comment.