104 lines
4.1 KiB
INI
104 lines
4.1 KiB
INI
# DNS服务器配置文件
|
||
# 格式:INI格式,使用#注释
|
||
|
||
[dns]
|
||
# DNS服务器监听端口
|
||
port = 53
|
||
# 上游DNS服务器列表,逗号分隔
|
||
upstreamDNS = 10.35.10.200, 106.14.121.141
|
||
# DNSSEC专用服务器列表,逗号分隔
|
||
dnssecUpstreamDNS = 208.67.220.220, 208.67.222.222
|
||
# 数据保存间隔(秒)
|
||
saveInterval = 10
|
||
# DNS缓存过期时间(分钟)
|
||
cacheTTL = 60
|
||
# 是否启用DNSSEC支持
|
||
enableDNSSEC = false
|
||
# 查询模式:parallel(并行请求)、fastest-ip(最快的IP地址)
|
||
queryMode = parallel
|
||
# 查询超时时间(毫秒)
|
||
queryTimeout = 500
|
||
# 是否启用快速返回机制
|
||
enableFastReturn = true
|
||
# 不验证DNSSEC的域名模式列表,逗号分隔
|
||
noDNSSECDomains = amazehome.cn, addr.arpa, amazehome.xyz, .cn
|
||
# 是否启用IPv6解析(AAAA记录)
|
||
enableIPv6 = false
|
||
# 缓存模式:memory(内存缓存)、file(文件缓存)
|
||
cacheMode = file
|
||
# 缓存大小限制(MB)
|
||
cacheSize = 100
|
||
# 最大缓存TTL(分钟)
|
||
maxCacheTTL = 60
|
||
# 最小缓存TTL(分钟)
|
||
minCacheTTL = 30
|
||
|
||
# 域名特定DNS服务器配置
|
||
# 格式:domain_域名匹配字符串 = DNS服务器1, DNS服务器2
|
||
domain_addr.arpa = 10.35.10.200:53
|
||
domain_akadns = 10.35.10.200:53
|
||
domain_akamai = 10.35.10.200:53
|
||
domain_amazehome.cn = 10.35.10.200:53
|
||
domain_amazehome.xyz = 10.35.10.200:53
|
||
domain_microsoft.com = 10.35.10.200:53
|
||
#domain_steam.com = 10.35.10.70:53
|
||
#domain_steamcontent.com = 10.35.10.70:53
|
||
|
||
[http]
|
||
# HTTP控制台监听端口
|
||
port = 8081
|
||
# HTTP控制台监听地址
|
||
host = 0.0.0.0
|
||
# 是否启用API
|
||
enableAPI = true
|
||
# 登录用户名
|
||
username = admin
|
||
# 登录密码
|
||
password = admin
|
||
|
||
[shield]
|
||
# 屏蔽规则更新间隔(秒)
|
||
updateInterval = 3600
|
||
# 屏蔽方法: NXDOMAIN, refused, emptyIP, customIP
|
||
blockMethod = NXDOMAIN
|
||
# 自定义屏蔽IP,当BlockMethod为"customIP"时使用
|
||
customBlockIP = 0.0.0.2
|
||
# 计数数据保存间隔(秒)
|
||
statsSaveInterval = 60
|
||
|
||
# 黑名单配置
|
||
# 格式:blacklist_名称 = URL,enabled
|
||
blacklist_AdGuard_DNS_filter = https://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/filter.txt,true
|
||
blacklist_Adaway_Default_Blocklist = https://gitea.amazehome.xyz/AMAZEHOME/hosts-and-Filters/raw/branch/main/hosts/adaway.txt,true
|
||
blacklist_CHN_anti_AD = https://gitea.amazehome.xyz/AMAZEHOME/hosts-and-Filters/raw/branch/main/list/easylist.txt,true
|
||
blacklist_My_GitHub_Rules = https://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/rules/costomize.txt,true
|
||
blacklist_CNList = https://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/list/china.list,false
|
||
blacklist_大圣净化 = http://gitea.amazehome.xyz/AMAZEHOME/hosts-and-Filters/raw/branch/main/hosts/dsjh.txt,true
|
||
blacklist_Hate_and_Junk = http://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/hate-and-junk-extended.txt,true
|
||
blacklist_My_Gitlab_Hosts = http://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/hosts/costomize.txt,true
|
||
blacklist_Anti_Remote_Requests = http://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/hosts/anti-remoterequests.txt,true
|
||
blacklist_URL_Based = http://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/rules/url-based-adguard.txt,true
|
||
blacklist_My_Gitlab_A_T_Rules = http://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/rules/ads-and-trackers.txt,true
|
||
blacklist_My_Gitlab_Malware_List = http://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/rules/malware.txt,true
|
||
blacklist_hosts = http://gitea.amazehome.xyz/AMAZEHOME/hosts-and-Filters/raw/branch/main/hosts/costomize.txt,true
|
||
blacklist_AWAvenue_Ads_Rule = http://gitea.amazehome.xyz/AMAZEHOME/hosts-and-Filters/raw/branch/main/rules/AWAvenue-Ads-Rule.txt,true
|
||
blacklist_诈骗域名 = https://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/rules/cheat.txt,true
|
||
|
||
[gfwList]
|
||
# GFWList域名解析的目标IP地址
|
||
ip = 127.0.0.1
|
||
# GFWList规则文件路径
|
||
content =
|
||
# 是否启用GFWList功能
|
||
enabled = false
|
||
|
||
[log]
|
||
# 日志级别:debug, info, warn, error
|
||
level = debug
|
||
# 日志文件最大大小(MB)
|
||
maxSize = 100
|
||
# 日志文件最大备份数
|
||
maxBackups = 10
|
||
# 日志文件最大保留天数
|
||
maxAge = 30
|