新建DNS服务器
This commit is contained in:
27
config.json
Normal file
27
config.json
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user