This commit is contained in:
Conners Hua 2020-07-30 23:13:10 +08:00
parent 03418dc53b
commit 6898dd80fc
3 changed files with 15 additions and 11 deletions

View File

@ -36,7 +36,7 @@ mode: rule
log-level: info
# When set to false, resolver won't translate hostnames to IPv6 addresses
ipv6: true
ipv6: false
# RESTful web API listening address
external-controller: 127.0.0.1:9090
@ -77,8 +77,8 @@ dns:
# These nameservers are used to resolve the DNS nameserver hostnames below.
# Specify IP addresses only
default-nameserver:
- 114.114.114.114
- 8.8.8.8
- 119.29.29.29
- 1.0.0.1
enhanced-mode: redir-host # or fake-ip
fake-ip-range: 198.18.0.1/16 # Fake IP addresses pool CIDR
@ -93,17 +93,16 @@ dns:
# All DNS questions are sent directly to the nameserver, without proxies
# involved. Clash answers the DNS question with the first result gathered.
nameserver:
- 114.114.114.114 # default value
- 8.8.8.8 # default value
- tls://dns.rubyfish.cn:853 # DNS over TLS
- https://1.1.1.1/dns-query # DNS over HTTPS
- 119.29.29.29
# - tls://dns.rubyfish.cn:853 # DNS over TLS
# - https://1.1.1.1/dns-query # DNS over HTTPS
# When `fallback` is present, the DNS server will send concurrent requests
# to the servers in this section along with servers in `nameservers`.
# The answers from fallback servers are used when the GEOIP country
# is not `CN`.
# fallback:
# - tcp://1.1.1.1
fallback:
- https://cloudflare-dns.com/dns-query
# If IP addresses resolved with servers in `nameservers` are in the specified
# subnets below, they are considered invalid and results from `fallback`

View File

@ -56,7 +56,10 @@ no-ipv6
# 第三方 DNS
server=119.29.29.29
server=223.5.5.5
# 电信
# server=118.118.118.118
# 联通
# server=116.116.116.116
# 本地 DNS 映射
address=/mtalk.google.com/108.177.125.188

View File

@ -40,7 +40,9 @@ use-default-policy-if-wifi-not-primary = false
# ------
# ---(DNS 服务器)---
dns-server = 119.29.29.29,223.5.5.5,system
# 电信 118.118.118.118
# 联通 116.116.116.116
dns-server = 119.29.29.29,system
# ------
# ---(实验性功能)---