155 lines
4.5 KiB
JSON
155 lines
4.5 KiB
JSON
{
|
|
"dns": {
|
|
"port": 53,
|
|
"upstreamDNS": [
|
|
"223.5.5.5:53"
|
|
],
|
|
"dnssecUpstreamDNS": [
|
|
"117.50.10.10:53",
|
|
"101.226.4.6:53",
|
|
"218.30.118.6:53",
|
|
"208.67.220.220:53",
|
|
"208.67.222.222:53"
|
|
],
|
|
"timeout": 5000,
|
|
"statsFile": "data/stats.json",
|
|
"saveInterval": 300,
|
|
"cacheTTL": 10,
|
|
"enableDNSSEC": true,
|
|
"queryMode": "loadbalance",
|
|
"domainSpecificDNS": {
|
|
"addr.arpa": [
|
|
"10.35.10.200:53"
|
|
],
|
|
"akadns": [
|
|
"4.2.2.1:53"
|
|
],
|
|
"akamai": [
|
|
"4.2.2.1:53"
|
|
],
|
|
"amazehome.cn": [
|
|
"10.35.10.200:53"
|
|
],
|
|
"amazehome.xyz": [
|
|
"10.35.10.200:53"
|
|
],
|
|
"microsoft.com": [
|
|
"4.2.2.1:53"
|
|
]
|
|
},
|
|
"noDNSSECDomains": [
|
|
"amazehome.cn",
|
|
"addr.arpa",
|
|
"amazehome.xyz",
|
|
".cn"
|
|
]
|
|
},
|
|
"http": {
|
|
"port": 8080,
|
|
"host": "0.0.0.0",
|
|
"enableAPI": true,
|
|
"username": "admin",
|
|
"password": "admin"
|
|
},
|
|
"shield": {
|
|
"localRulesFile": "data/rules.txt",
|
|
"blacklists": [
|
|
{
|
|
"name": "AdGuard DNS filter",
|
|
"url": "https://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/filter.txt",
|
|
"enabled": true,
|
|
"lastUpdateTime": "2025-12-21T10:46:36.629Z"
|
|
},
|
|
{
|
|
"name": "Adaway Default Blocklist",
|
|
"url": "https://gitea.amazehome.xyz/AMAZEHOME/hosts-and-Filters/raw/branch/main/hosts/adaway.txt",
|
|
"enabled": true,
|
|
"lastUpdateTime": "2025-11-28T15:36:43.086Z"
|
|
},
|
|
{
|
|
"name": "CHN-anti-AD",
|
|
"url": "https://gitea.amazehome.xyz/AMAZEHOME/hosts-and-Filters/raw/branch/main/list/easylist.txt",
|
|
"enabled": true,
|
|
"lastUpdateTime": "2025-12-16T08:50:10.180Z"
|
|
},
|
|
{
|
|
"name": "My GitHub Rules",
|
|
"url": "https://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/rules/costomize.txt",
|
|
"enabled": true,
|
|
"lastUpdateTime": "2025-11-29T17:05:40.283Z"
|
|
},
|
|
{
|
|
"name": "CNList",
|
|
"url": "https://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/list/china.list",
|
|
"enabled": false
|
|
},
|
|
{
|
|
"name": "大圣净化",
|
|
"url": "http://gitea.amazehome.xyz/AMAZEHOME/hosts-and-Filters/raw/branch/main/hosts/dsjh.txt",
|
|
"enabled": true
|
|
},
|
|
{
|
|
"name": "Hate \u0026 Junk",
|
|
"url": "http://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/hate-and-junk-extended.txt",
|
|
"enabled": true,
|
|
"lastUpdateTime": "2025-12-21T10:46:43.522Z"
|
|
},
|
|
{
|
|
"name": "My Gitlab Hosts",
|
|
"url": "http://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/hosts/costomize.txt",
|
|
"enabled": true,
|
|
"lastUpdateTime": "2025-12-18T10:39:39.333Z"
|
|
},
|
|
{
|
|
"name": "Anti Remote Requests",
|
|
"url": "http://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/hosts/anti-remoterequests.txt",
|
|
"enabled": true
|
|
},
|
|
{
|
|
"name": "URL-Based.txt",
|
|
"url": "http://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/rules/url-based-adguard.txt",
|
|
"enabled": true
|
|
},
|
|
{
|
|
"name": "My Gitlab A/T Rules",
|
|
"url": "http://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/rules/ads-and-trackers.txt",
|
|
"enabled": true,
|
|
"lastUpdateTime": "2025-12-18T10:38:42.344Z"
|
|
},
|
|
{
|
|
"name": "My Gitlab Malware List",
|
|
"url": "http://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/rules/malware.txt",
|
|
"enabled": true
|
|
},
|
|
{
|
|
"name": "hosts",
|
|
"url": "http://gitea.amazehome.xyz/AMAZEHOME/hosts-and-Filters/raw/branch/main/hosts/costomize.txt",
|
|
"enabled": true
|
|
},
|
|
{
|
|
"name": "AWAvenue-Ads-Rule",
|
|
"url": "http://gitea.amazehome.xyz/AMAZEHOME/hosts-and-Filters/raw/branch/main/rules/AWAvenue-Ads-Rule.txt",
|
|
"enabled": true
|
|
},
|
|
{
|
|
"name": "诈骗域名",
|
|
"url": "https://gitea.amazehome.xyz/AMAZEHOME/hosts-and-filters/raw/branch/main/rules/cheat.txt",
|
|
"enabled": true
|
|
}
|
|
],
|
|
"updateInterval": 3600,
|
|
"hostsFile": "data/hosts.txt",
|
|
"blockMethod": "NXDOMAIN",
|
|
"customBlockIP": "",
|
|
"statsFile": "./data/shield_stats.json",
|
|
"statsSaveInterval": 60,
|
|
"remoteRulesCacheDir": "data/remote_rules"
|
|
},
|
|
"log": {
|
|
"file": "logs/dns-server.log",
|
|
"level": "debug",
|
|
"maxSize": 100,
|
|
"maxBackups": 10,
|
|
"maxAge": 30
|
|
}
|
|
} |