diff --git a/V2rayNG/app/src/main/assets/custom_routing_black b/V2rayNG/app/src/main/assets/custom_routing_black index 5989f58d5..ce0c74403 100644 --- a/V2rayNG/app/src/main/assets/custom_routing_black +++ b/V2rayNG/app/src/main/assets/custom_routing_black @@ -116,8 +116,9 @@ "domain:dns.google", "domain:adguard-dns.com", "domain:opendns.com", + "domain:umbrella.com", "domain:quad9.net", - "domain:dns.yandex.ru" + "domain:yandex.net" ] }, { diff --git a/V2rayNG/app/src/main/assets/custom_routing_white b/V2rayNG/app/src/main/assets/custom_routing_white index f27d3868a..750bd6d47 100644 --- a/V2rayNG/app/src/main/assets/custom_routing_white +++ b/V2rayNG/app/src/main/assets/custom_routing_white @@ -63,14 +63,16 @@ "140.207.198.6", "1.2.4.8", "210.2.4.8", - "117.50.11.11", "52.80.66.66", + "117.50.22.22", "2400:7fc0:849e:200::4", "2404:c2c0:85d8:901::4", "117.50.10.10", "52.80.52.52", "2400:7fc0:849e:200::8", - "2404:c2c0:85d8:901::8" + "2404:c2c0:85d8:901::8", + "117.50.60.30", + "52.80.60.30" ] }, { diff --git a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/AppConfig.kt b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/AppConfig.kt index 8276d394c..65b757a4b 100644 --- a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/AppConfig.kt +++ b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/AppConfig.kt @@ -161,15 +161,20 @@ object AppConfig { const val GOOGLEAPIS_COM_DOMAIN = "googleapis.com" // Android Private DNS constants - const val DNS_PUB_DOMAIN = "dns.pub" + const val DNS_DNSPOD_DOMAIN = "dot.pub" const val DNS_ALIDNS_DOMAIN = "dns.alidns.com" - const val DNS_ONE_ONE_DOMAIN = "one.one.one.one" + const val DNS_CLOUDFLARE_DOMAIN = "one.one.one.one" const val DNS_GOOGLE_DOMAIN = "dns.google" + const val DNS_QUAD9_DOMAIN = "dns.quad9.net" + const val DNS_YANDEX_DOMAIN = "common.dot.dns.yandex.net" - val DNS_PUB_ADDRESSES = arrayListOf("1.12.12.12", "120.53.53.53") + val DNS_ALIDNS_ADDRESSES = arrayListOf("223.5.5.5", "223.6.6.6", "2400:3200::1", "2400:3200:baba::1") - val DNS_ONE_ONE_ADDRESSES = arrayListOf("1.1.1.1", "1.0.0.1", "2606:4700:4700::1111", "2606:4700:4700::1001") + val DNS_CLOUDFLARE_ADDRESSES = arrayListOf("1.1.1.1", "1.0.0.1", "2606:4700:4700::1111", "2606:4700:4700::1001") + val DNS_DNSPOD_ADDRESSES = arrayListOf("1.12.12.12", "120.53.53.53") val DNS_GOOGLE_ADDRESSES = arrayListOf("8.8.8.8", "8.8.4.4", "2001:4860:4860::8888", "2001:4860:4860::8844") + val DNS_QUAD9_ADDRESSES = arrayListOf("9.9.9.9", "149.112.112.112", "2620:fe::fe", "2620:fe::9") + val DNS_YANDEX_ADDRESSES = arrayListOf("77.88.8.8", "77.88.8.1", "2a02:6b8::feed:0ff", "2a02:6b8:0:1::feed:0ff") const val DEFAULT_PORT = 443 const val DEFAULT_SECURITY = "auto" diff --git a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/handler/V2rayConfigManager.kt b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/handler/V2rayConfigManager.kt index 09ff52005..04c8724a0 100644 --- a/V2rayNG/app/src/main/kotlin/com/v2ray/ang/handler/V2rayConfigManager.kt +++ b/V2rayNG/app/src/main/kotlin/com/v2ray/ang/handler/V2rayConfigManager.kt @@ -8,12 +8,16 @@ import com.v2ray.ang.AppConfig.ANG_PACKAGE import com.v2ray.ang.AppConfig.DEFAULT_NETWORK import com.v2ray.ang.AppConfig.DNS_ALIDNS_ADDRESSES import com.v2ray.ang.AppConfig.DNS_ALIDNS_DOMAIN +import com.v2ray.ang.AppConfig.DNS_CLOUDFLARE_ADDRESSES +import com.v2ray.ang.AppConfig.DNS_CLOUDFLARE_DOMAIN +import com.v2ray.ang.AppConfig.DNS_DNSPOD_ADDRESSES +import com.v2ray.ang.AppConfig.DNS_DNSPOD_DOMAIN import com.v2ray.ang.AppConfig.DNS_GOOGLE_ADDRESSES import com.v2ray.ang.AppConfig.DNS_GOOGLE_DOMAIN -import com.v2ray.ang.AppConfig.DNS_ONE_ONE_ADDRESSES -import com.v2ray.ang.AppConfig.DNS_ONE_ONE_DOMAIN -import com.v2ray.ang.AppConfig.DNS_PUB_ADDRESSES -import com.v2ray.ang.AppConfig.DNS_PUB_DOMAIN +import com.v2ray.ang.AppConfig.DNS_QUAD9_ADDRESSES +import com.v2ray.ang.AppConfig.DNS_QUAD9_DOMAIN +import com.v2ray.ang.AppConfig.DNS_YANDEX_ADDRESSES +import com.v2ray.ang.AppConfig.DNS_YANDEX_DOMAIN import com.v2ray.ang.AppConfig.GEOIP_CN import com.v2ray.ang.AppConfig.GEOSITE_CN import com.v2ray.ang.AppConfig.GEOSITE_PRIVATE @@ -376,10 +380,12 @@ object V2rayConfigManager { hosts[GOOGLEAPIS_CN_DOMAIN] = GOOGLEAPIS_COM_DOMAIN // hardcode popular Android Private DNS rule to fix localhost DNS problem - hosts[DNS_PUB_DOMAIN] = DNS_PUB_ADDRESSES hosts[DNS_ALIDNS_DOMAIN] = DNS_ALIDNS_ADDRESSES - hosts[DNS_ONE_ONE_DOMAIN] = DNS_ONE_ONE_ADDRESSES + hosts[DNS_CLOUDFLARE_DOMAIN] = DNS_CLOUDFLARE_ADDRESSES + hosts[DNS_DNSPOD_DOMAIN] = DNS_DNSPOD_ADDRESSES hosts[DNS_GOOGLE_DOMAIN] = DNS_GOOGLE_ADDRESSES + hosts[DNS_QUAD9_DOMAIN] = DNS_QUAD9_ADDRESSES + hosts[DNS_YANDEX_DOMAIN] = DNS_YANDEX_ADDRESSES // DNS dns对象