本机安装了 daed , mosdns 和 dnsmasq,应该如何配置 dns 和 route #672
Unanswered
luckyjamesriver
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我在一台Debian12 中配置了 daed 、 mosdns 、dnsmasq 和 sing-box 作为整个网络的旁路由,连接 VPS,目前连接正常。
Dns:
ipversion_prefer: 4
upstream {
mosdns: 'tcp://127.0.0.1:5335'
}
routing {
request {
fallback: mosdns
}
}
Route:
pname(mosdns) && l4proto(tcp) && dport(5335) && dport(53)-> must_direct
pname(NetworkManager, systemd-resolved,Dnsmasq) -> must_direct
pname(sing-box) -> must_direct
dip(224.0.0.0/3) -> direct
dip(geoip:private) -> direct
dip(geoip:private) -> direct
dip(geoip:cn) -> direct
domain(geosite:cn) -> direct
ipversion(6) -> block
domain(geosite:category-ads) -> block
domain(geosite:category-ads-all) -> block
domain(geosite:geolocation-!cn) -> toWorld_proxy
!dip(geoip:cn) -> toWorld_proxy
fallback: toWorld_proxy
Dnsmasq: nameserver 127.0.0.1#5335
但是,有以下的困惑:
在 #245 示例中,pname(mosdns) -> must_rules 这个配置;
在 https://github.com/daeuniverse/dae/blob/main/docs/en/configuration/external-dns.md 中 “本地主机上的外部 DNS:pname(AdGuardHome) && l4proto(udp) && dport(53) -> must_direct“ 这样配置。
请教,如何配置才是最佳方案?
谢谢!
Beta Was this translation helpful? Give feedback.
All reactions