|
|
|
@ -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`
|
|
|
|
|