From a352f2e08b1236016c3d3daa0912845ca732e111 Mon Sep 17 00:00:00 2001 From: darkli Date: Sun, 14 Dec 2025 17:35:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4dns=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=EF=BC=8C=E7=A1=AE=E4=BF=9D=E6=B2=A1=E6=9C=89dns=E6=B3=84?= =?UTF-8?q?=E6=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clash-config-subscriptions.yaml | 105 ++++++------------------- clash-config-subscriptions_corp.yaml | 84 +++++++------------- clash-config-subscriptions_simple.yaml | 37 ++++++--- com/clash-config-sub_corp.yaml | 37 ++++++--- com/clash-config-sub_dx.yaml | 57 ++++++++------ com/clash-config-sub_dyl.yaml | 37 ++++++--- com/clash-config-sub_share.yaml | 37 ++++++--- com/clash-config-sub_share_c.yaml | 37 ++++++--- com/clash-config-sub_share_corp.yaml | 39 +++++---- com/clash-config-sub_share_f.yaml | 37 ++++++--- com/clash-config-sub_share_p.yaml | 37 ++++++--- com/clash-config-sub_share_shan.yaml | 37 ++++++--- com/clash-config-sub_wj.yaml | 37 ++++++--- template/dns-config.yaml | 70 +++++++++++++++++ 14 files changed, 397 insertions(+), 291 deletions(-) create mode 100644 template/dns-config.yaml diff --git a/clash-config-subscriptions.yaml b/clash-config-subscriptions.yaml index d367207..d671f04 100644 --- a/clash-config-subscriptions.yaml +++ b/clash-config-subscriptions.yaml @@ -53,99 +53,42 @@ dns: # 如订阅配置无包括此项的所有DNS设置,OpenClash将自动添 enhanced-mode: fake-ip # or redir-host # 此项将被接管 fake-ip-range: 198.18.0.1/16 # if you don't know what it is, don't change it # 此项将被接管 default-nameserver: + # Unicom DNS + - 123.123.123.123 + - 123.123.123.124 + - 2408:8000:1010:1::8 + - 2408:8000:1010:2::8 + - 2408:8888::8 + - 2408:8899::8 # Telecom (ShenZhen) - 202.96.134.133 - 202.96.128.86 - 202.96.128.166 + # Ali DNS + - 223.5.5.5 + - 223.6.6.6 + # Tencent DNS + - 119.29.29.29 # Google DNS - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 - # Cloudflare - # - 1.1.1.1 - # - 1.0.0.1 - # - 2606:4700:4700::1111 - # - 2606:4700:4700::1001 - # OpenDNS - # - 208.67.222.222 - # - 208.67.220.220 - # - 2620:119:35::35 - # - 2620:119:53::53 - # Quad9 - # - 9.9.9.9 - # - 149.112.112.112 - # - 2620:fe::fe - # - 2620:fe::9 + # - 8.8.8.8 + # - 8.8.4.4 + # - 2001:4860:4860::8888 + # - 2001:4860:4860::8844 + # 仅用于解析“代理节点域名/订阅里节点的域名”,避免鸡生蛋问题 + proxy-server-nameserver: + # Ali DNS + - https://223.5.5.5/dns-query nameserver: # Google DNS - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 - - tls://dns.google:853 - - https://dns.google/dns-query + - https://dns.google/dns-query#📺 Proxy # Cloudflare - # - tls://cloudflare-dns.com:853 - # - https://cloudflare-dns.com/dns-query - # OpenDNS - # - https://doh.opendns.com/dns-query - # Quad9 - # - https://dns.quad9.net/dns-query - # - tls://dns.quad9.net:853 - # Unicom DNS - # - 123.123.123.123 - # - 123.123.123.124 - # - 2408:8000:1010:1::8 - # - 2408:8000:1010:2::8 - # - 2408:8888::8 - # - 2408:8899::8 - # Telecom (ShenZhen) - # - 202.96.134.133 - # - 202.96.128.86 - # - 202.96.128.166 - # Ali - # - https://223.5.5.5/dns-query - # - https://223.6.6.6/dns-query - # - https://dns.alidns.com/dns-query + - https://cloudflare-dns.com/dns-query nameserver-policy: - # "+.gstatic.com": "123.123.123.123" "geosite:cn, private": - - 123.123.123.123 - - 123.123.123.124 + # Ali - https://223.5.5.5/dns-query - https://223.6.6.6/dns-query - https://dns.alidns.com/dns-query - # proxy-server-nameserver: - # - 8.8.8.8 - # - 8.8.4.4 - # fallback: - # # # Unicom DNS - # # - 123.123.123.123 - # # - 123.123.123.124 - # # - 2408:8888::8 - # # - 2408:8899::8 - # # # Cisco OpenDNS - # # - 208.67.222.222 - # # - 208.67.220.220 - # # - 2620:0:ccc::2 - # # - 2620:0:ccd::2 - # # Cloudflare DNS - # - https://cloudflare-dns.com/dns-query - # - https://dns.cloudflare.com/dns-query - # # Google DNS - # - tls://8.8.8.8:853 - # - tls://dns.google:853 - # - https://dns.google/dns-query - # # # China Education and Research Network Center - # # - 101.6.6.191 - # # - "[2001:da8::666]:53" - # fallback-filter: - # geoip: true - # geoip-code: CN - # ipcidr: - # - 240.0.0.0/4 - # - 0.0.0.0/32 proxies: # 下面放入你的节点信息(可以多个,认证仔细点!) @@ -557,7 +500,7 @@ proxies: port: 8085 uuid: f908c3cf-a922-48ce-b2c4-4a4da2957676 network: tcp - flow: xtls-rprx-vision + flow: xtls-rprx-vision tls: true udp: true servername: "speed.cloudflare.com" # AKA SNI diff --git a/clash-config-subscriptions_corp.yaml b/clash-config-subscriptions_corp.yaml index a0748a0..c59aa1e 100644 --- a/clash-config-subscriptions_corp.yaml +++ b/clash-config-subscriptions_corp.yaml @@ -53,72 +53,42 @@ dns: # 如订阅配置无包括此项的所有DNS设置,OpenClash将自动添 enhanced-mode: fake-ip # or redir-host # 此项将被接管 fake-ip-range: 198.18.0.1/16 # if you don't know what it is, don't change it # 此项将被接管 default-nameserver: + # Unicom DNS + - 123.123.123.123 + - 123.123.123.124 + - 2408:8000:1010:1::8 + - 2408:8000:1010:2::8 + - 2408:8888::8 + - 2408:8899::8 # Telecom (ShenZhen) - # - 202.96.134.133 - # - 202.96.128.86 - # - 202.96.128.166 - # Ali + - 202.96.134.133 + - 202.96.128.86 + - 202.96.128.166 + # Ali DNS - 223.5.5.5 + - 223.6.6.6 + # Tencent DNS + - 119.29.29.29 # Google DNS - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 - # Cloudflare - # - 1.1.1.1 - # - 1.0.0.1 - # - 2606:4700:4700::1111 - # - 2606:4700:4700::1001 - # OpenDNS - # - 208.67.222.222 - # - 208.67.220.220 - # - 2620:119:35::35 - # - 2620:119:53::53 - # Quad9 - # - 9.9.9.9 - # - 149.112.112.112 - # - 2620:fe::fe - # - 2620:fe::9 + # - 8.8.8.8 + # - 8.8.4.4 + # - 2001:4860:4860::8888 + # - 2001:4860:4860::8844 + # 仅用于解析“代理节点域名/订阅里节点的域名”,避免鸡生蛋问题 + proxy-server-nameserver: + # Ali DNS + - https://223.5.5.5/dns-query nameserver: # Google DNS - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 - - tls://dns.google:853 - - https://dns.google/dns-query + - https://dns.google/dns-query#📺 Proxy # Cloudflare - # - tls://cloudflare-dns.com:853 - # - https://cloudflare-dns.com/dns-query - # OpenDNS - # - https://doh.opendns.com/dns-query - # Quad9 - # - https://dns.quad9.net/dns-query - # - tls://dns.quad9.net:853 - # Unicom DNS - # - 123.123.123.123 - # - 123.123.123.124 - # - 2408:8888::8 - # - 2408:8899::8 - # Telecom (ShenZhen) - # - 202.96.134.133 - # - 202.96.128.86 - # - 202.96.128.166 - # Ali - # - https://223.5.5.5/dns-query - # - https://223.6.6.6/dns-query - # - https://dns.alidns.com/dns-query + - https://cloudflare-dns.com/dns-query nameserver-policy: "geosite:cn, private": # Ali - - 223.5.5.5 - # - https://223.5.5.5/dns-query - # - https://223.6.6.6/dns-query - # - https://dns.alidns.com/dns-query - # Telecom (ShenZhen) - # - 202.96.134.133 - # - 202.96.128.86 - # - 202.96.128.166 + - https://223.5.5.5/dns-query + - https://223.6.6.6/dns-query + - https://dns.alidns.com/dns-query proxies: # 下面放入你的节点信息(可以多个,认证仔细点!) diff --git a/clash-config-subscriptions_simple.yaml b/clash-config-subscriptions_simple.yaml index 17bcda9..3506e9e 100644 --- a/clash-config-subscriptions_simple.yaml +++ b/clash-config-subscriptions_simple.yaml @@ -53,28 +53,39 @@ dns: # 如订阅配置无包括此项的所有DNS设置,OpenClash将自动添 enhanced-mode: fake-ip # or redir-host # 此项将被接管 fake-ip-range: 198.18.0.1/16 # if you don't know what it is, don't change it # 此项将被接管 default-nameserver: + # Unicom DNS + - 123.123.123.123 + - 123.123.123.124 + - 2408:8000:1010:1::8 + - 2408:8000:1010:2::8 + - 2408:8888::8 + - 2408:8899::8 # Telecom (ShenZhen) - 202.96.134.133 - 202.96.128.86 - 202.96.128.166 + # Ali DNS + - 223.5.5.5 + - 223.6.6.6 + # Tencent DNS + - 119.29.29.29 # Google DNS - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + # - 8.8.8.8 + # - 8.8.4.4 + # - 2001:4860:4860::8888 + # - 2001:4860:4860::8844 + # 仅用于解析“代理节点域名/订阅里节点的域名”,避免鸡生蛋问题 + proxy-server-nameserver: + # Ali DNS + - https://223.5.5.5/dns-query nameserver: # Google DNS - - tls://dns.google:853 - - https://dns.google/dns-query - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + - https://dns.google/dns-query#📺 Proxy + # Cloudflare + - https://cloudflare-dns.com/dns-query nameserver-policy: - # "+.gstatic.com": "123.123.123.123" "geosite:cn, private": - - 123.123.123.123 - - 123.123.123.124 + # Ali - https://223.5.5.5/dns-query - https://223.6.6.6/dns-query - https://dns.alidns.com/dns-query diff --git a/com/clash-config-sub_corp.yaml b/com/clash-config-sub_corp.yaml index 46ad327..5913fb3 100644 --- a/com/clash-config-sub_corp.yaml +++ b/com/clash-config-sub_corp.yaml @@ -53,28 +53,39 @@ dns: # 如订阅配置无包括此项的所有DNS设置,OpenClash将自动添 enhanced-mode: fake-ip # or redir-host # 此项将被接管 fake-ip-range: 198.18.0.1/16 # if you don't know what it is, don't change it # 此项将被接管 default-nameserver: + # Unicom DNS + - 123.123.123.123 + - 123.123.123.124 + - 2408:8000:1010:1::8 + - 2408:8000:1010:2::8 + - 2408:8888::8 + - 2408:8899::8 # Telecom (ShenZhen) - 202.96.134.133 - 202.96.128.86 - 202.96.128.166 + # Ali DNS + - 223.5.5.5 + - 223.6.6.6 + # Tencent DNS + - 119.29.29.29 # Google DNS - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + # - 8.8.8.8 + # - 8.8.4.4 + # - 2001:4860:4860::8888 + # - 2001:4860:4860::8844 + # 仅用于解析“代理节点域名/订阅里节点的域名”,避免鸡生蛋问题 + proxy-server-nameserver: + # Ali DNS + - https://223.5.5.5/dns-query nameserver: # Google DNS - - tls://dns.google:853 - - https://dns.google/dns-query - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + - https://dns.google/dns-query#📺 Proxy + # Cloudflare + - https://cloudflare-dns.com/dns-query nameserver-policy: - # "+.gstatic.com": "123.123.123.123" "geosite:cn, private": - - 123.123.123.123 - - 123.123.123.124 + # Ali - https://223.5.5.5/dns-query - https://223.6.6.6/dns-query - https://dns.alidns.com/dns-query diff --git a/com/clash-config-sub_dx.yaml b/com/clash-config-sub_dx.yaml index e0221a8..6bbcc1c 100644 --- a/com/clash-config-sub_dx.yaml +++ b/com/clash-config-sub_dx.yaml @@ -53,29 +53,42 @@ dns: # 如订阅配置无包括此项的所有DNS设置,OpenClash将自动添 enhanced-mode: fake-ip # or redir-host # 此项将被接管 fake-ip-range: 198.18.0.1/16 # if you don't know what it is, don't change it # 此项将被接管 default-nameserver: - # - 127.0.0.1 - - 8.8.8.8 - # - 1.1.1.1 - # - 114.114.114.114 + # Unicom DNS + - 123.123.123.123 + - 123.123.123.124 + - 2408:8000:1010:1::8 + - 2408:8000:1010:2::8 + - 2408:8888::8 + - 2408:8899::8 + # Telecom (ShenZhen) + - 202.96.134.133 + - 202.96.128.86 + - 202.96.128.166 + # Ali DNS + - 223.5.5.5 + - 223.6.6.6 + # Tencent DNS + - 119.29.29.29 + # Google DNS + # - 8.8.8.8 + # - 8.8.4.4 + # - 2001:4860:4860::8888 + # - 2001:4860:4860::8844 + # 仅用于解析“代理节点域名/订阅里节点的域名”,避免鸡生蛋问题 + proxy-server-nameserver: + # Ali DNS + - https://223.5.5.5/dns-query nameserver: - # - 127.0.0.1 - - 8.8.8.8 - # - 1.1.1.1 - # - 114.114.114.114 - fallback: - - https://dns.cloudflare.com/dns-query - - tls://dns.google:853 - - https://1.1.1.1/dns-query - - tls://1.1.1.1:853 - - tls://8.8.8.8:853 - - "[2001:4860:4860::8888]:53" - - "[2001:4860:4860::8844]:53" - # - "[2001:da8::666]:53" - fallback-filter: - geoip: true - ipcidr: - - 240.0.0.0/4 - - 0.0.0.0/32 + # Google DNS + - https://dns.google/dns-query#📺 Proxy + # Cloudflare + - https://cloudflare-dns.com/dns-query + nameserver-policy: + "geosite:cn, private": + # Ali + - https://223.5.5.5/dns-query + - https://223.6.6.6/dns-query + - https://dns.alidns.com/dns-query proxies: # 下面放入你的节点信息(可以多个,认证仔细点!) diff --git a/com/clash-config-sub_dyl.yaml b/com/clash-config-sub_dyl.yaml index 00606c5..dd1342c 100644 --- a/com/clash-config-sub_dyl.yaml +++ b/com/clash-config-sub_dyl.yaml @@ -53,28 +53,39 @@ dns: # 如订阅配置无包括此项的所有DNS设置,OpenClash将自动添 enhanced-mode: fake-ip # or redir-host # 此项将被接管 fake-ip-range: 198.18.0.1/16 # if you don't know what it is, don't change it # 此项将被接管 default-nameserver: + # Unicom DNS + - 123.123.123.123 + - 123.123.123.124 + - 2408:8000:1010:1::8 + - 2408:8000:1010:2::8 + - 2408:8888::8 + - 2408:8899::8 # Telecom (ShenZhen) - 202.96.134.133 - 202.96.128.86 - 202.96.128.166 + # Ali DNS + - 223.5.5.5 + - 223.6.6.6 + # Tencent DNS + - 119.29.29.29 # Google DNS - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + # - 8.8.8.8 + # - 8.8.4.4 + # - 2001:4860:4860::8888 + # - 2001:4860:4860::8844 + # 仅用于解析“代理节点域名/订阅里节点的域名”,避免鸡生蛋问题 + proxy-server-nameserver: + # Ali DNS + - https://223.5.5.5/dns-query nameserver: # Google DNS - - tls://dns.google:853 - - https://dns.google/dns-query - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + - https://dns.google/dns-query#📺 Proxy + # Cloudflare + - https://cloudflare-dns.com/dns-query nameserver-policy: - # "+.gstatic.com": "123.123.123.123" "geosite:cn, private": - - 123.123.123.123 - - 123.123.123.124 + # Ali - https://223.5.5.5/dns-query - https://223.6.6.6/dns-query - https://dns.alidns.com/dns-query diff --git a/com/clash-config-sub_share.yaml b/com/clash-config-sub_share.yaml index 0b76107..8a189ca 100644 --- a/com/clash-config-sub_share.yaml +++ b/com/clash-config-sub_share.yaml @@ -53,28 +53,39 @@ dns: # 如订阅配置无包括此项的所有DNS设置,OpenClash将自动添 enhanced-mode: fake-ip # or redir-host # 此项将被接管 fake-ip-range: 198.18.0.1/16 # if you don't know what it is, don't change it # 此项将被接管 default-nameserver: + # Unicom DNS + - 123.123.123.123 + - 123.123.123.124 + - 2408:8000:1010:1::8 + - 2408:8000:1010:2::8 + - 2408:8888::8 + - 2408:8899::8 # Telecom (ShenZhen) - 202.96.134.133 - 202.96.128.86 - 202.96.128.166 + # Ali DNS + - 223.5.5.5 + - 223.6.6.6 + # Tencent DNS + - 119.29.29.29 # Google DNS - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + # - 8.8.8.8 + # - 8.8.4.4 + # - 2001:4860:4860::8888 + # - 2001:4860:4860::8844 + # 仅用于解析“代理节点域名/订阅里节点的域名”,避免鸡生蛋问题 + proxy-server-nameserver: + # Ali DNS + - https://223.5.5.5/dns-query nameserver: # Google DNS - - tls://dns.google:853 - - https://dns.google/dns-query - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + - https://dns.google/dns-query#📺 Proxy + # Cloudflare + - https://cloudflare-dns.com/dns-query nameserver-policy: - # "+.gstatic.com": "123.123.123.123" "geosite:cn, private": - - 123.123.123.123 - - 123.123.123.124 + # Ali - https://223.5.5.5/dns-query - https://223.6.6.6/dns-query - https://dns.alidns.com/dns-query diff --git a/com/clash-config-sub_share_c.yaml b/com/clash-config-sub_share_c.yaml index 37484a9..67d3b95 100644 --- a/com/clash-config-sub_share_c.yaml +++ b/com/clash-config-sub_share_c.yaml @@ -53,28 +53,39 @@ dns: # 如订阅配置无包括此项的所有DNS设置,OpenClash将自动添 enhanced-mode: fake-ip # or redir-host # 此项将被接管 fake-ip-range: 198.18.0.1/16 # if you don't know what it is, don't change it # 此项将被接管 default-nameserver: + # Unicom DNS + - 123.123.123.123 + - 123.123.123.124 + - 2408:8000:1010:1::8 + - 2408:8000:1010:2::8 + - 2408:8888::8 + - 2408:8899::8 # Telecom (ShenZhen) - 202.96.134.133 - 202.96.128.86 - 202.96.128.166 + # Ali DNS + - 223.5.5.5 + - 223.6.6.6 + # Tencent DNS + - 119.29.29.29 # Google DNS - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + # - 8.8.8.8 + # - 8.8.4.4 + # - 2001:4860:4860::8888 + # - 2001:4860:4860::8844 + # 仅用于解析“代理节点域名/订阅里节点的域名”,避免鸡生蛋问题 + proxy-server-nameserver: + # Ali DNS + - https://223.5.5.5/dns-query nameserver: # Google DNS - - tls://dns.google:853 - - https://dns.google/dns-query - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + - https://dns.google/dns-query#📺 Proxy + # Cloudflare + - https://cloudflare-dns.com/dns-query nameserver-policy: - # "+.gstatic.com": "123.123.123.123" "geosite:cn, private": - - 123.123.123.123 - - 123.123.123.124 + # Ali - https://223.5.5.5/dns-query - https://223.6.6.6/dns-query - https://dns.alidns.com/dns-query diff --git a/com/clash-config-sub_share_corp.yaml b/com/clash-config-sub_share_corp.yaml index e134a7a..3cade0e 100644 --- a/com/clash-config-sub_share_corp.yaml +++ b/com/clash-config-sub_share_corp.yaml @@ -53,28 +53,39 @@ dns: # 如订阅配置无包括此项的所有DNS设置,OpenClash将自动添 enhanced-mode: fake-ip # or redir-host # 此项将被接管 fake-ip-range: 198.18.0.1/16 # if you don't know what it is, don't change it # 此项将被接管 default-nameserver: + # Unicom DNS + - 123.123.123.123 + - 123.123.123.124 + - 2408:8000:1010:1::8 + - 2408:8000:1010:2::8 + - 2408:8888::8 + - 2408:8899::8 # Telecom (ShenZhen) - 202.96.134.133 - 202.96.128.86 - 202.96.128.166 + # Ali DNS + - 223.5.5.5 + - 223.6.6.6 + # Tencent DNS + - 119.29.29.29 # Google DNS - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + # - 8.8.8.8 + # - 8.8.4.4 + # - 2001:4860:4860::8888 + # - 2001:4860:4860::8844 + # 仅用于解析“代理节点域名/订阅里节点的域名”,避免鸡生蛋问题 + proxy-server-nameserver: + # Ali DNS + - https://223.5.5.5/dns-query nameserver: # Google DNS - - tls://dns.google:853 - - https://dns.google/dns-query - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + - https://dns.google/dns-query#📺 Proxy + # Cloudflare + - https://cloudflare-dns.com/dns-query nameserver-policy: - # "+.gstatic.com": "123.123.123.123" "geosite:cn, private": - - 123.123.123.123 - - 123.123.123.124 + # Ali - https://223.5.5.5/dns-query - https://223.6.6.6/dns-query - https://dns.alidns.com/dns-query @@ -90,7 +101,7 @@ proxies: port: 8085 uuid: f908c3cf-a922-48ce-b2c4-4a4da2957676 network: tcp - flow: xtls-rprx-vision + flow: xtls-rprx-vision tls: true udp: true servername: "speed.cloudflare.com" # AKA SNI diff --git a/com/clash-config-sub_share_f.yaml b/com/clash-config-sub_share_f.yaml index 7ff96eb..7a695d6 100644 --- a/com/clash-config-sub_share_f.yaml +++ b/com/clash-config-sub_share_f.yaml @@ -53,28 +53,39 @@ dns: # 如订阅配置无包括此项的所有DNS设置,OpenClash将自动添 enhanced-mode: fake-ip # or redir-host # 此项将被接管 fake-ip-range: 198.18.0.1/16 # if you don't know what it is, don't change it # 此项将被接管 default-nameserver: + # Unicom DNS + - 123.123.123.123 + - 123.123.123.124 + - 2408:8000:1010:1::8 + - 2408:8000:1010:2::8 + - 2408:8888::8 + - 2408:8899::8 # Telecom (ShenZhen) - 202.96.134.133 - 202.96.128.86 - 202.96.128.166 + # Ali DNS + - 223.5.5.5 + - 223.6.6.6 + # Tencent DNS + - 119.29.29.29 # Google DNS - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + # - 8.8.8.8 + # - 8.8.4.4 + # - 2001:4860:4860::8888 + # - 2001:4860:4860::8844 + # 仅用于解析“代理节点域名/订阅里节点的域名”,避免鸡生蛋问题 + proxy-server-nameserver: + # Ali DNS + - https://223.5.5.5/dns-query nameserver: # Google DNS - - tls://dns.google:853 - - https://dns.google/dns-query - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + - https://dns.google/dns-query#📺 Proxy + # Cloudflare + - https://cloudflare-dns.com/dns-query nameserver-policy: - # "+.gstatic.com": "123.123.123.123" "geosite:cn, private": - - 123.123.123.123 - - 123.123.123.124 + # Ali - https://223.5.5.5/dns-query - https://223.6.6.6/dns-query - https://dns.alidns.com/dns-query diff --git a/com/clash-config-sub_share_p.yaml b/com/clash-config-sub_share_p.yaml index 447e2a4..f6cc02f 100644 --- a/com/clash-config-sub_share_p.yaml +++ b/com/clash-config-sub_share_p.yaml @@ -53,28 +53,39 @@ dns: # 如订阅配置无包括此项的所有DNS设置,OpenClash将自动添 enhanced-mode: fake-ip # or redir-host # 此项将被接管 fake-ip-range: 198.18.0.1/16 # if you don't know what it is, don't change it # 此项将被接管 default-nameserver: + # Unicom DNS + - 123.123.123.123 + - 123.123.123.124 + - 2408:8000:1010:1::8 + - 2408:8000:1010:2::8 + - 2408:8888::8 + - 2408:8899::8 # Telecom (ShenZhen) - 202.96.134.133 - 202.96.128.86 - 202.96.128.166 + # Ali DNS + - 223.5.5.5 + - 223.6.6.6 + # Tencent DNS + - 119.29.29.29 # Google DNS - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + # - 8.8.8.8 + # - 8.8.4.4 + # - 2001:4860:4860::8888 + # - 2001:4860:4860::8844 + # 仅用于解析“代理节点域名/订阅里节点的域名”,避免鸡生蛋问题 + proxy-server-nameserver: + # Ali DNS + - https://223.5.5.5/dns-query nameserver: # Google DNS - - tls://dns.google:853 - - https://dns.google/dns-query - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + - https://dns.google/dns-query#📺 Proxy + # Cloudflare + - https://cloudflare-dns.com/dns-query nameserver-policy: - # "+.gstatic.com": "123.123.123.123" "geosite:cn, private": - - 123.123.123.123 - - 123.123.123.124 + # Ali - https://223.5.5.5/dns-query - https://223.6.6.6/dns-query - https://dns.alidns.com/dns-query diff --git a/com/clash-config-sub_share_shan.yaml b/com/clash-config-sub_share_shan.yaml index 884d562..f239234 100644 --- a/com/clash-config-sub_share_shan.yaml +++ b/com/clash-config-sub_share_shan.yaml @@ -53,28 +53,39 @@ dns: # 如订阅配置无包括此项的所有DNS设置,OpenClash将自动添 enhanced-mode: fake-ip # or redir-host # 此项将被接管 fake-ip-range: 198.18.0.1/16 # if you don't know what it is, don't change it # 此项将被接管 default-nameserver: + # Unicom DNS + - 123.123.123.123 + - 123.123.123.124 + - 2408:8000:1010:1::8 + - 2408:8000:1010:2::8 + - 2408:8888::8 + - 2408:8899::8 # Telecom (ShenZhen) - 202.96.134.133 - 202.96.128.86 - 202.96.128.166 + # Ali DNS + - 223.5.5.5 + - 223.6.6.6 + # Tencent DNS + - 119.29.29.29 # Google DNS - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + # - 8.8.8.8 + # - 8.8.4.4 + # - 2001:4860:4860::8888 + # - 2001:4860:4860::8844 + # 仅用于解析“代理节点域名/订阅里节点的域名”,避免鸡生蛋问题 + proxy-server-nameserver: + # Ali DNS + - https://223.5.5.5/dns-query nameserver: # Google DNS - - tls://dns.google:853 - - https://dns.google/dns-query - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + - https://dns.google/dns-query#📺 Proxy + # Cloudflare + - https://cloudflare-dns.com/dns-query nameserver-policy: - # "+.gstatic.com": "123.123.123.123" "geosite:cn, private": - - 123.123.123.123 - - 123.123.123.124 + # Ali - https://223.5.5.5/dns-query - https://223.6.6.6/dns-query - https://dns.alidns.com/dns-query diff --git a/com/clash-config-sub_wj.yaml b/com/clash-config-sub_wj.yaml index 8317881..7d003ff 100644 --- a/com/clash-config-sub_wj.yaml +++ b/com/clash-config-sub_wj.yaml @@ -53,28 +53,39 @@ dns: # 如订阅配置无包括此项的所有DNS设置,OpenClash将自动添 enhanced-mode: fake-ip # or redir-host # 此项将被接管 fake-ip-range: 198.18.0.1/16 # if you don't know what it is, don't change it # 此项将被接管 default-nameserver: + # Unicom DNS + - 123.123.123.123 + - 123.123.123.124 + - 2408:8000:1010:1::8 + - 2408:8000:1010:2::8 + - 2408:8888::8 + - 2408:8899::8 # Telecom (ShenZhen) - 202.96.134.133 - 202.96.128.86 - 202.96.128.166 + # Ali DNS + - 223.5.5.5 + - 223.6.6.6 + # Tencent DNS + - 119.29.29.29 # Google DNS - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + # - 8.8.8.8 + # - 8.8.4.4 + # - 2001:4860:4860::8888 + # - 2001:4860:4860::8844 + # 仅用于解析“代理节点域名/订阅里节点的域名”,避免鸡生蛋问题 + proxy-server-nameserver: + # Ali DNS + - https://223.5.5.5/dns-query nameserver: # Google DNS - - tls://dns.google:853 - - https://dns.google/dns-query - - 8.8.8.8 - - 8.8.4.4 - - 2001:4860:4860::8888 - - 2001:4860:4860::8844 + - https://dns.google/dns-query#📺 Proxy + # Cloudflare + - https://cloudflare-dns.com/dns-query nameserver-policy: - # "+.gstatic.com": "123.123.123.123" "geosite:cn, private": - - 123.123.123.123 - - 123.123.123.124 + # Ali - https://223.5.5.5/dns-query - https://223.6.6.6/dns-query - https://dns.alidns.com/dns-query diff --git a/template/dns-config.yaml b/template/dns-config.yaml new file mode 100644 index 0000000..0912b9e --- /dev/null +++ b/template/dns-config.yaml @@ -0,0 +1,70 @@ +dns: # 如订阅配置无包括此项的所有DNS设置,OpenClash将自动添加 + enable: true # set true to enable dns (default is false) # 此项将被接管为true + ipv6: true # default is false # 此项将被接管 + listen: 0.0.0.0:53 # 端口为53时将被接管为7874 + enhanced-mode: fake-ip # or redir-host # 此项将被接管 + fake-ip-range: 198.18.0.1/16 # if you don't know what it is, don't change it # 此项将被接管 + default-nameserver: + # Unicom DNS + - 123.123.123.123 + - 123.123.123.124 + # - 2408:8000:1010:1::8 + # - 2408:8000:1010:2::8 + # - 2408:8888::8 + # - 2408:8899::8 + # Telecom (ShenZhen) + - 202.96.134.133 + - 202.96.128.86 + - 202.96.128.166 + # Ali DNS + - 223.5.5.5 + - 223.6.6.6 + # Tencent DNS + - 119.29.29.29 + # Google DNS + # - 8.8.8.8 + # - 8.8.4.4 + # - 2001:4860:4860::8888 + # - 2001:4860:4860::8844 + # Cloudflare + # - 1.1.1.1 + # - 1.0.0.1 + # - 2606:4700:4700::1111 + # - 2606:4700:4700::1001 + # OpenDNS + # - 208.67.222.222 + # - 208.67.220.220 + # - 2620:119:35::35 + # - 2620:119:53::53 + # Quad9 + # - 9.9.9.9 + # - 149.112.112.112 + # - 2620:fe::fe + # - 2620:fe::9 + # 仅用于解析“代理节点域名/订阅里节点的域名”,避免鸡生蛋问题 + proxy-server-nameserver: + # Ali DNS + - https://223.5.5.5/dns-query + nameserver: + # Google DNS + # - tls://8.8.8.8:853#📺 Proxy + # - tls://8.8.4.4:853#📺 Proxy + # - tls://dns.google:853#📺 Proxy + - https://dns.google/dns-query#📺 Proxy + # 2. OpenDNS (美国 Cisco,作为 Google 连不上时的纯净美国备胎) + # 它的 IP 通常显示为美国,不会显示新加坡 + # - tls://208.67.222.222:853 + # - https://doh.opendns.com/dns-query + # Cloudflare + # - tls://1.1.1.1:853 + # - tls://cloudflare-dns.com:853 + - https://cloudflare-dns.com/dns-query + # Quad9 + # - https://dns.quad9.net/dns-query + # - tls://dns.quad9.net:853 + nameserver-policy: + "geosite:cn, private": + # Ali + - https://223.5.5.5/dns-query + - https://223.6.6.6/dns-query + - https://dns.alidns.com/dns-query