forked from 217heidai/adblockfilters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmartdns.conf
45 lines (39 loc) · 1.54 KB
/
smartdns.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 监听端口
bind [::]:5053
#### log ####
# 日志级别 off、fatal、error、warn、notice、info 或 debug
log-level info
# 日志文件路径
log-file /tmp/smartdns/smartdns.log
#### 缓存 ####
# 域名结果缓存个数,1 条缓存占内存 512 字节。0 关闭缓存,不配置为系统自动设置(系统内存 128 M,自动缓存 32768 条占内存 16 M;系统内存 256 M,自动缓存 65536 条占内存 32 M;系统内存 512 M,自动缓存 131072 条占内存 64 M;系统内存大于 512 M,自动缓存 262144 条占内存 128 M)。
#cache-size 0 # force set response of group to fastest-ip as cache size is 0
#### IPV6 #####
# 双栈 IP 优选。关闭
dualstack-ip-selection no
# 强制 AAAA 地址返回 SOA。禁用ipv6
force-AAAA-SOA yes
#### 测速 ####
# 首次查询响应模式。模式:
#[first-ping]: 最快ping响应地址模式,DNS上游最快查询时延+ping时延最短,查询等待与链接体验最佳;
#[fastest-ip]: 最快IP地址模式,查询到的所有IP地址中ping最短的IP。需等待IP测速;
#[fastest-response]: 最快响应的DNS结果,DNS查询等待时间最短,返回的IP地址可能不是最快。
response-mode fastest-response
#### 其它 ####
# 强制指定 qtype 返回 SOA。禁用 SOA 65
force-qtype-SOA 65
# TCP 链接空闲超时时间
tcp-idle-time 120
#### 上游 DNS 服务 ####
# Google
server-tls 8.8.8.8:853
# Cloudflare
server-tls 1.1.1.1:853
# Quad9
server-tls 9.9.9.9:853
# AliDNS
server-tls 223.5.5.5:853
# DNSPod
server-tls 1.12.12.12:853
# 360
server-tls 101.226.4.6:853