You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
log:
level: info
file: "/var/log/mosdns.log"
api:
http: "0.0.0.0:9091"
include: []
plugins:
内网PTR域名
type: domain_set
args:
files:
- "./rule/local-ptr.txt"
hosts
type: hosts
args:
files:
- "./rule/hosts.txt"
缓存
tag: lazy_cache
type: cache
args:
size: 20000
lazy_cache_ttl: 86400
dump_file: "/etc/mosdns/cache.dump"
dump_interval: 600
tag: forward_local
type: forward
args:
upstreams:
- addr: "quic://223.6.6.6/dns-query"
enable_pipeline: true
- addr: "https://45.249.245.247:5443/OMFdeG-WvUc/dns-query"
enable_http3: true
enable_pipeline: true
so_mark: 0
查看是否有应答
type: sequence
args:
exec: accept
掉入黑洞
type: sequence
args:
域名不存在
type: sequence
args:
国内解析
tag: local_sequence
type: sequence
args:
tag: main_sequence
type: sequence
args:
域名映射IP
缓存
exec: $cache
屏蔽内网PTR域名请求
exec: goto black_hole_sequence
屏蔽TYPE65类型请求
matches:
exec: goto black_hole_sequence
exec: $local_sequence
type: udp_server
args:
entry: main_sequence
listen: ":53"
type: tcp_server
args:
entry: main_sequence
listen: ":53"
Beta Was this translation helpful? Give feedback.
All reactions