浏览代码

added variables

tags/v1.2.0^0
Robin Thoni 8 年前
父节点
当前提交
478d3e954f
共有 4 个文件被更改,包括 20 次插入5 次删除
  1. 5
    0
      env
  2. 5
    5
      pdns/config/pdns.conf
  3. 5
    0
      pdns/vars-vars
  4. 5
    0
      poweradmin/vars-vars

+ 5
- 0
env 查看文件

@@ -6,6 +6,11 @@ POSTGRES_DB=poweradmin
6 6
 PDNS_RECURSOR_HOST=pdns-recursor.pdns.internal.docker
7 7
 PDNS_API_KEY=change_it
8 8
 PDNS_WEBSERVER_PASSWORD=change_it
9
+PDNS_ALLOW_AXFR_IPS=127.0.0.1,172.0.0.0/8,192.168.0.0/16
10
+PDNS_ALLOW_RECURSION=127.0.0.1,172.0.0.0/8,192.168.0.0/16
11
+PDNS_ALSO_NOTIFY=
12
+PDNS_ALLOW_NOTIFY_FROM=0.0.0.0/0,::/0
13
+PDNS_ALLOW_DNSUPDATE_FROM=127.0.0.0/8,::1
9 14
 
10 15
 SESSION_KEY=change_it
11 16
 

+ 5
- 5
pdns/config/pdns.conf 查看文件

@@ -7,22 +7,22 @@
7 7
 #################################
8 8
 # allow-axfr-ips  Allow zonetransfers only to these subnets
9 9
 #
10
-allow-axfr-ips=127.0.0.1,172.0.0.0/8,192.168.0.0/16
10
+allow-axfr-ips=PDNS_ALLOW_AXFR_IPS
11 11
 
12 12
 #################################
13 13
 # allow-dnsupdate-from  A global setting to allow DNS updates from these IP ranges.
14 14
 #
15
-# allow-dnsupdate-from=127.0.0.0/8,::1
15
+allow-dnsupdate-from=PDNS_ALLOW_DNSUPDATE_FROM
16 16
 
17 17
 #################################
18 18
 # allow-notify-from Allow AXFR NOTIFY from these IP ranges. If empty, drop all incoming notifies.
19 19
 #
20
-# allow-notify-from=0.0.0.0/0,::/0
20
+allow-notify-from=PDNS_ALLOW_NOTIFY_FROM
21 21
 
22 22
 #################################
23 23
 # allow-recursion List of subnets that are allowed to recurse
24 24
 #
25
-allow-recursion=127.0.0.1,172.0.0.0/8,192.168.0.0/16
25
+allow-recursion=PDNS_ALLOW_RECURSION
26 26
 
27 27
 #################################
28 28
 # allow-unsigned-notify Allow unsigned notifications for TSIG secured domains
@@ -37,7 +37,7 @@ allow-recursion=127.0.0.1,172.0.0.0/8,192.168.0.0/16
37 37
 #################################
38 38
 # also-notify When notifying a domain, also notify these nameservers
39 39
 #
40
-# also-notify=
40
+also-notify=PDNS_ALSO_NOTIFY
41 41
 
42 42
 #################################
43 43
 # any-to-tcp  Answer ANY queries with tc=1, shunting to TCP

+ 5
- 0
pdns/vars-vars 查看文件

@@ -6,6 +6,11 @@ POSTGRES_DB
6 6
 PDNS_RECURSOR_HOST
7 7
 PDNS_API_KEY
8 8
 PDNS_WEBSERVER_PASSWORD
9
+PDNS_ALLOW_AXFR_IPS
10
+PDNS_ALLOW_RECURSION
11
+PDNS_ALSO_NOTIFY
12
+PDNS_ALLOW_NOTIFY_FROM
13
+PDNS_ALLOW_DNSUPDATE_FROM
9 14
 
10 15
 SESSION_KEY
11 16
 

+ 5
- 0
poweradmin/vars-vars 查看文件

@@ -6,6 +6,11 @@ POSTGRES_DB
6 6
 PDNS_RECURSOR_HOST
7 7
 PDNS_API_KEY
8 8
 PDNS_WEBSERVER_PASSWORD
9
+PDNS_ALLOW_AXFR_IPS
10
+PDNS_ALLOW_RECURSION
11
+PDNS_ALSO_NOTIFY
12
+PDNS_ALLOW_NOTIFY_FROM
13
+PDNS_ALLOW_DNSUPDATE_FROM
9 14
 
10 15
 SESSION_KEY
11 16
 

正在加载...
取消
保存