Add IP-literal DoH presets and expose dns-module in routing inbound tags (#10571)

DomainRemoteDNSAddress gains https://1.1.1.1/dns-query and
https://8.8.8.8/dns-query: on networks that transparently rewrite port 53,
hostname-based DoH endpoints resolve to the block page and fail, so the
existing presets are unusable there while the IP-literal forms work.

InboundTags gains dns-module so the routing rule editor can express
'route DNS out direct', a tag xray already supports and v2rayN itself
emits in the generated config.
This commit is contained in:
~Borderlessboy~
2026-11-13 01:26:07 -05:00
committed by GitHub
parent cbb8721d8a
commit d5338f673c
+5 -1
View File
@@ -499,6 +499,9 @@ public class Global
"https://doh.dns.sb/dns-query",
"https://doh.opendns.com/dns-query",
"https://common.dot.dns.yandex.net/dns-query",
"https://1.1.1.1/dns-query",
"https://8.8.8.8/dns-query",
"https://1.1.1.1/dns-query,https://8.8.8.8/dns-query",
"8.8.8.8",
"1.1.1.1",
"185.222.222.222",
@@ -578,7 +581,8 @@ public class Global
"tun",
"socks",
"socks2",
"socks3"
"socks3",
"dns-module"
];
public static readonly List<string> RuleProtocols =