新建DNS服务器

This commit is contained in:
Alex Yang
2025-11-23 18:21:29 +08:00
commit 0072e8a5c2
15 changed files with 5372 additions and 0 deletions

27
config.json Normal file
View File

@@ -0,0 +1,27 @@
{
"dns": {
"port": 53,
"upstreamDNS": ["223.5.5.5:53", "223.6.6.6:53"],
"timeout": 5000
},
"http": {
"port": 8080,
"host": "0.0.0.0",
"enableAPI": true
},
"shield": {
"localRulesFile": "rules.txt",
"remoteRules": [
"https://example.com/rules.txt"
],
"updateInterval": 3600,
"hostsFile": "hosts.txt"
},
"log": {
"file": "dns-server.log",
"level": "debug",
"maxSize": 100,
"maxBackups": 10,
"maxAge": 30
}
}