forked from dmachard/dnsdist-config-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin_config.lua
More file actions
32 lines (26 loc) · 849 Bytes
/
admin_config.lua
File metadata and controls
32 lines (26 loc) · 849 Bytes
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
-- bind on ip any
setLocal('0.0.0.0:53', { reusePort=true })
-- allow all IP access
setACL("0.0.0.0/0")
-- admin interface control
controlSocket('0.0.0.0:5199')
setKey("pVC5gO/HECwOfgFzQDjAy6v5mWYmpwcj2h546GjqDgg=")
-- start the web server on port 8080
webserver("0.0.0.0:8080")
setWebserverConfig({
acl="0.0.0.0/0",
password="changeme",
apiKey="changeme",
hashPlaintextCredentials=true,
apiRequiresAuthentication=false}
)
-- disable security feature polling
setSecurityPollSuffix('')
-- pool of backend dns
newServer({address="1.1.1.1:53", pool="default"})
newServer({address="9.9.9.9:53", pool="default"})
newServer({address="8.8.8.8:53", pool="default"})
newServer({address="8.8.4.4:53", pool="default"})
newServer({address="1.0.0.1:53", pool="default"})
-- default routing
addAction(AllRule(),PoolAction("default"))