From d5338f673cb3b7c4071b0a9ae318959e85cc198e Mon Sep 17 00:00:00 2001 From: ~Borderlessboy~ Date: Fri, 13 Nov 2026 01:26:07 -0500 Subject: [PATCH] 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. --- v2rayN/ServiceLib/Global.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/v2rayN/ServiceLib/Global.cs b/v2rayN/ServiceLib/Global.cs index e19fea8f..7b9c0623 100644 --- a/v2rayN/ServiceLib/Global.cs +++ b/v2rayN/ServiceLib/Global.cs @@ -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 RuleProtocols =