From 8118427f88d1ee53d1a3347b4970f9ff1cfcf998 Mon Sep 17 00:00:00 2001 From: Akariln <93932940+Akariln@users.noreply.github.com> Date: Sat, 19 Apr 2025 18:49:16 +0800 Subject: [PATCH] Improve default DNS Proxy may not support UDP relay, use TCP to make DNS via proxy; It is also possible to set up a backup DNS. --- v2rayN/ServiceLib/Sample/dns_v2ray_normal | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/v2rayN/ServiceLib/Sample/dns_v2ray_normal b/v2rayN/ServiceLib/Sample/dns_v2ray_normal index 3f9c8b22..3b862c1f 100644 --- a/v2rayN/ServiceLib/Sample/dns_v2ray_normal +++ b/v2rayN/ServiceLib/Sample/dns_v2ray_normal @@ -5,7 +5,16 @@ }, "servers": [ { - "address": "1.1.1.1", + "address": "tcp://1.1.1.1", + "domains": [ + "geosite:geolocation-!cn" + ], + "expectIPs": [ + "geoip:!cn" + ] + }, + { + "address": "tcp://8.8.8.8"", "domains": [ "geosite:geolocation-!cn" ], @@ -23,7 +32,6 @@ "geoip:cn" ] }, - "8.8.8.8", "https://dns.google/dns-query" ] -} \ No newline at end of file +}