Browse Source

upgraded to pdns 4.1; enabled webserver and api

tags/v1.2.0
Robin Thoni 7 years ago
parent
commit
511eb3caee
6 changed files with 209 additions and 135 deletions
  1. 1
    0
      docker-compose.yml
  2. 2
    0
      env
  3. 8
    0
      pdns/Dockerfile
  4. 194
    135
      pdns/config/pdns.conf
  5. 2
    0
      pdns/vars-vars
  6. 2
    0
      poweradmin/vars-vars

+ 1
- 0
docker-compose.yml View File

@@ -37,6 +37,7 @@ services:
37 37
         ports:
38 38
             - "0.0.0.0:53:53/udp"
39 39
             - "0.0.0.0:53:53/tcp"
40
+            - "127.0.0.1:34022:80"
40 41
         env_file:
41 42
             - env
42 43
 

+ 2
- 0
env View File

@@ -4,6 +4,8 @@ POSTGRES_PASSWORD=pg_password
4 4
 POSTGRES_DB=poweradmin
5 5
 
6 6
 PDNS_RECURSOR_HOST=pdns-recursor.pdns.internal.docker
7
+PDNS_API_KEY=change_it
8
+PDNS_WEBSERVER_PASSWORD=change_it
7 9
 
8 10
 SESSION_KEY=change_it
9 11
 

+ 8
- 0
pdns/Dockerfile View File

@@ -2,6 +2,14 @@ FROM debian:jessie
2 2
 
3 3
 MAINTAINER Robin Thoni <robin@rthoni.com>
4 4
 
5
+RUN apt-get update && \
6
+    apt-get install -y curl && \
7
+    apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
8
+
9
+RUN echo 'deb http://repo.powerdns.com/debian jessie-auth-40 main' > /etc/apt/sources.list.d/pdns.list && \
10
+    echo 'Package: pdns-*\nPin: origin repo.powerdns.com\nPin-Priority: 600' > /etc/apt/preferences.d/pdns && \
11
+    curl https://repo.powerdns.com/FD380FBB-pub.asc | apt-key add -
12
+
5 13
 COPY ./preseed.txt /tmp/preseed.txt
6 14
 
7 15
 RUN debconf-set-selections /tmp/preseed.txt

+ 194
- 135
pdns/config/pdns.conf View File

@@ -1,518 +1,577 @@
1
+# Autogenerated configuration file template
1 2
 #################################
2
-# allow-axfr-ips	Allow zonetransfers only to these subnets
3
+# 8bit-dns  Allow 8bit dns queries
3 4
 #
4
-# allow-axfr-ips=
5
+# 8bit-dns=no
5 6
 
6 7
 #################################
7
-# allow-dnsupdate-from	A global setting to allow DNS updates from these IP ranges.
8
+# allow-axfr-ips  Allow zonetransfers only to these subnets
9
+#
10
+allow-axfr-ips=127.0.0.1,172.0.0.0/8,192.168.0.0/16
11
+
12
+#################################
13
+# allow-dnsupdate-from  A global setting to allow DNS updates from these IP ranges.
8 14
 #
9 15
 # allow-dnsupdate-from=127.0.0.0/8,::1
10 16
 
11 17
 #################################
12
-# allow-recursion	List of subnets that are allowed to recurse
18
+# allow-notify-from Allow AXFR NOTIFY from these IP ranges. If empty, drop all incoming notifies.
19
+#
20
+# allow-notify-from=0.0.0.0/0,::/0
21
+
22
+#################################
23
+# allow-recursion List of subnets that are allowed to recurse
13 24
 #
14 25
 allow-recursion=127.0.0.1,172.0.0.0/8,192.168.0.0/16
15 26
 
16 27
 #################################
17
-# also-notify	When notifying a domain, also notify these nameservers
28
+# allow-unsigned-notify Allow unsigned notifications for TSIG secured domains
29
+#
30
+# allow-unsigned-notify=yes
31
+
32
+#################################
33
+# allow-unsigned-supermaster  Allow supermasters to create zones without TSIG signed NOTIFY
34
+#
35
+# allow-unsigned-supermaster=yes
36
+
37
+#################################
38
+# also-notify When notifying a domain, also notify these nameservers
18 39
 #
19 40
 # also-notify=
20 41
 
21 42
 #################################
22
-# any-to-tcp	Answer ANY queries with tc=1, shunting to TCP
43
+# any-to-tcp  Answer ANY queries with tc=1, shunting to TCP
23 44
 #
24 45
 # any-to-tcp=no
25 46
 
26 47
 #################################
27
-# cache-ttl	Seconds to store packets in the PacketCache
48
+# api Enable/disable the REST API
49
+#
50
+api=yes
51
+
52
+#################################
53
+# api-key Static pre-shared authentication key for access to the REST API
54
+#
55
+api-key=PDNS_API_KEY
56
+
57
+#################################
58
+# api-logfile Location of the server logfile (used by the REST API)
59
+#
60
+# api-logfile=/var/log/pdns.log
61
+
62
+#################################
63
+# api-readonly  Disallow data modification through the REST API when set
64
+#
65
+api-readonly=no
66
+
67
+#################################
68
+# cache-ttl Seconds to store packets in the PacketCache
28 69
 #
29 70
 # cache-ttl=20
30 71
 
31 72
 #################################
32
-# carbon-interval	Number of seconds between carbon (graphite) updates
73
+# carbon-interval Number of seconds between carbon (graphite) updates
33 74
 #
34 75
 # carbon-interval=30
35 76
 
36 77
 #################################
37
-# carbon-ourname	If set, overrides our reported hostname for carbon stats
78
+# carbon-ourname  If set, overrides our reported hostname for carbon stats
38 79
 #
39 80
 # carbon-ourname=
40 81
 
41 82
 #################################
42
-# carbon-server	If set, send metrics in carbon (graphite) format to this server
83
+# carbon-server If set, send metrics in carbon (graphite) format to this server
43 84
 #
44 85
 # carbon-server=
45 86
 
46 87
 #################################
47
-# chroot	If set, chroot to this directory for more security
88
+# chroot  If set, chroot to this directory for more security
48 89
 #
49 90
 # chroot=
50 91
 
51 92
 #################################
52
-# config-dir	Location of configuration directory (pdns.conf)
93
+# config-dir  Location of configuration directory (pdns.conf)
53 94
 #
54 95
 config-dir=/etc/powerdns
55 96
 
56 97
 #################################
57
-# config-name	Name of this virtual configuration - will rename the binary image
98
+# config-name Name of this virtual configuration - will rename the binary image
58 99
 #
59 100
 # config-name=
60 101
 
61 102
 #################################
62
-# control-console	Debugging switch - don't use
103
+# control-console Debugging switch - don't use
63 104
 #
64 105
 # control-console=no
65 106
 
66 107
 #################################
67
-# daemon	Operate as a daemon
108
+# daemon  Operate as a daemon
68 109
 #
69
-# daemon=yes
110
+# daemon=no
70 111
 
71 112
 #################################
72
-# default-ksk-algorithms	Default KSK algorithms
113
+# default-ksk-algorithms  Default KSK algorithms
73 114
 #
74
-# default-ksk-algorithms=rsasha256
115
+# default-ksk-algorithms=ecdsa256
75 116
 
76 117
 #################################
77
-# default-ksk-size	Default KSK size (0 means default)
118
+# default-ksk-size  Default KSK size (0 means default)
78 119
 #
79 120
 # default-ksk-size=0
80 121
 
81 122
 #################################
82
-# default-soa-mail	mail address to insert in the SOA record if none set in the backend
123
+# default-soa-edit  Default SOA-EDIT value
124
+#
125
+# default-soa-edit=
126
+
127
+#################################
128
+# default-soa-edit-signed Default SOA-EDIT value for signed zones
129
+#
130
+# default-soa-edit-signed=
131
+
132
+#################################
133
+# default-soa-mail  mail address to insert in the SOA record if none set in the backend
83 134
 #
84 135
 # default-soa-mail=
85 136
 
86 137
 #################################
87
-# default-soa-name	name to insert in the SOA record if none set in the backend
138
+# default-soa-name  name to insert in the SOA record if none set in the backend
88 139
 #
89 140
 # default-soa-name=a.misconfigured.powerdns.server
90 141
 
91 142
 #################################
92
-# default-ttl	Seconds a result is valid if not set otherwise
143
+# default-ttl Seconds a result is valid if not set otherwise
93 144
 #
94 145
 # default-ttl=3600
95 146
 
96 147
 #################################
97
-# default-zsk-algorithms	Default ZSK algorithms
148
+# default-zsk-algorithms  Default ZSK algorithms
98 149
 #
99
-# default-zsk-algorithms=rsasha256
150
+# default-zsk-algorithms=
100 151
 
101 152
 #################################
102
-# default-zsk-size	Default ZSK size (0 means default)
153
+# default-zsk-size  Default ZSK size (0 means default)
103 154
 #
104 155
 # default-zsk-size=0
105 156
 
106 157
 #################################
107
-# direct-dnskey	Fetch DNSKEY RRs from backend during DNSKEY synthesis
158
+# direct-dnskey Fetch DNSKEY RRs from backend during DNSKEY synthesis
108 159
 #
109 160
 # direct-dnskey=no
110 161
 
111 162
 #################################
112
-# disable-axfr	Disable zonetransfers but do allow TCP queries
163
+# disable-axfr  Disable zonetransfers but do allow TCP queries
113 164
 #
114 165
 disable-axfr=no
115 166
 
116 167
 #################################
117
-# disable-axfr-rectify	Disable the rectify step during an outgoing AXFR. Only required for regression testing.
168
+# disable-axfr-rectify  Disable the rectify step during an outgoing AXFR. Only required for regression testing.
118 169
 #
119 170
 # disable-axfr-rectify=no
120 171
 
121 172
 #################################
122
-# disable-tcp	Do not listen to TCP queries
173
+# disable-syslog  Disable logging to syslog, useful when running inside a supervisor that logs stdout
123 174
 #
124
-# disable-tcp=no
175
+# disable-syslog=no
125 176
 
126 177
 #################################
127
-# distributor-threads	Default number of Distributor (backend) threads to start
178
+# disable-tcp Do not listen to TCP queries
128 179
 #
129
-# distributor-threads=3
180
+# disable-tcp=no
130 181
 
131 182
 #################################
132
-# do-ipv6-additional-processing	Do AAAA additional processing
183
+# distributor-threads Default number of Distributor (backend) threads to start
133 184
 #
134
-# do-ipv6-additional-processing=yes
185
+# distributor-threads=3
135 186
 
136 187
 #################################
137
-# edns-subnet-processing	If we should act on EDNS Subnet options
188
+# dname-processing  If we should support DNAME records
138 189
 #
139
-# edns-subnet-processing=no
190
+# dname-processing=no
140 191
 
141 192
 #################################
142
-# entropy-source	If set, read entropy from this file
193
+# dnssec-key-cache-ttl  Seconds to cache DNSSEC keys from the database
143 194
 #
144
-# entropy-source=/dev/urandom
195
+# dnssec-key-cache-ttl=30
145 196
 
146 197
 #################################
147
-# experimental-api-key	REST API Static authentication key (required for API use)
198
+# dnsupdate Enable/Disable DNS update (RFC2136) support. Default is no.
148 199
 #
149
-# experimental-api-key=
200
+# dnsupdate=no
150 201
 
151 202
 #################################
152
-# experimental-api-readonly	If the JSON API should disallow data modification
203
+# do-ipv6-additional-processing Do AAAA additional processing
153 204
 #
154
-# experimental-api-readonly=no
205
+# do-ipv6-additional-processing=yes
155 206
 
156 207
 #################################
157
-# experimental-dname-processing	If we should support DNAME records
208
+# domain-metadata-cache-ttl Seconds to cache domain metadata from the database
158 209
 #
159
-# experimental-dname-processing=no
210
+# domain-metadata-cache-ttl=60
160 211
 
161 212
 #################################
162
-# experimental-dnsupdate	Enable/Disable DNS update (RFC2136) support. Default is no.
213
+# edns-subnet-processing  If we should act on EDNS Subnet options
163 214
 #
164
-# experimental-dnsupdate=no
215
+# edns-subnet-processing=no
165 216
 
166 217
 #################################
167
-# experimental-json-interface	If the webserver should serve JSON data
218
+# entropy-source  If set, read entropy from this file
168 219
 #
169
-# experimental-json-interface=no
220
+# entropy-source=/dev/urandom
170 221
 
171 222
 #################################
172
-# experimental-logfile	Filename of the log file for JSON parser
223
+# experimental-lua-policy-script  Lua script for the policy engine
173 224
 #
174
-# experimental-logfile=/var/log/pdns.log
225
+# experimental-lua-policy-script=
175 226
 
176 227
 #################################
177
-# forward-dnsupdate	A global setting to allow DNS update packages that are for a Slave domain, to be forwarded to the master.
228
+# forward-dnsupdate A global setting to allow DNS update packages that are for a Slave domain, to be forwarded to the master.
178 229
 #
179 230
 # forward-dnsupdate=yes
180 231
 
181 232
 #################################
182
-# guardian	Run within a guardian process
233
+# guardian  Run within a guardian process
183 234
 #
184 235
 guardian=yes
185 236
 
186 237
 #################################
187
-# include-dir	Include *.conf files from this directory
238
+# include-dir Include *.conf files from this directory
188 239
 #
189 240
 # include-dir=
190 241
 include-dir=/etc/powerdns/pdns.d
191 242
 
192 243
 #################################
193
-# launch	Which backends to launch and order to query them in
244
+# launch  Which backends to launch and order to query them in
194 245
 #
195 246
 # launch=
196
-launch=gpgsql
247
+launch=
197 248
 
198 249
 #################################
199
-# load-modules	Load this module - supply absolute or relative path
250
+# load-modules  Load this module - supply absolute or relative path
200 251
 #
201 252
 # load-modules=
202 253
 
203 254
 #################################
204
-# local-address	Local IP addresses to which we bind
255
+# local-address Local IP addresses to which we bind
205 256
 #
206 257
 local-address=0.0.0.0
207 258
 
208 259
 #################################
209
-# local-address-nonexist-fail	Fail to start if one or more of the local-address's do not exist on this server
260
+# local-address-nonexist-fail Fail to start if one or more of the local-address's do not exist on this server
210 261
 #
211 262
 # local-address-nonexist-fail=yes
212 263
 
213 264
 #################################
214
-# local-ipv6	Local IP address to which we bind
265
+# local-ipv6  Local IP address to which we bind
215 266
 #
216
-# local-ipv6=
267
+# local-ipv6=::
217 268
 
218 269
 #################################
219
-# local-ipv6-nonexist-fail	Fail to start if one or more of the local-ipv6 addresses do not exist on this server
270
+# local-ipv6-nonexist-fail  Fail to start if one or more of the local-ipv6 addresses do not exist on this server
220 271
 #
221 272
 # local-ipv6-nonexist-fail=yes
222 273
 
223 274
 #################################
224
-# local-port	The port on which we listen
275
+# local-port  The port on which we listen
225 276
 #
226 277
 # local-port=53
227 278
 
228 279
 #################################
229
-# log-dns-details	If PDNS should log DNS non-erroneous details
280
+# log-dns-details If PDNS should log DNS non-erroneous details
230 281
 #
231 282
 # log-dns-details=no
232 283
 
233 284
 #################################
234
-# log-dns-queries	If PDNS should log all incoming DNS queries
285
+# log-dns-queries If PDNS should log all incoming DNS queries
235 286
 #
236 287
 # log-dns-queries=no
237 288
 
238 289
 #################################
239
-# logging-facility	Log under a specific facility
290
+# logging-facility  Log under a specific facility
240 291
 #
241 292
 # logging-facility=
242 293
 
243 294
 #################################
244
-# loglevel	Amount of logging. Higher is more. Do not set below 3
295
+# loglevel  Amount of logging. Higher is more. Do not set below 3
245 296
 #
246 297
 # loglevel=4
247 298
 
248 299
 #################################
249
-# lua-prequery-script	Lua script with prequery handler
300
+# lua-prequery-script Lua script with prequery handler (DO NOT USE)
250 301
 #
251 302
 # lua-prequery-script=
252 303
 
253 304
 #################################
254
-# master	Act as a master
305
+# master  Act as a master
255 306
 #
256 307
 master=yes
257 308
 
258 309
 #################################
259
-# max-cache-entries	Maximum number of cache entries
310
+# max-cache-entries Maximum number of cache entries
260 311
 #
261 312
 # max-cache-entries=1000000
262 313
 
263 314
 #################################
264
-# max-ent-entries	Maximum number of empty non-terminals in a zone
315
+# max-ent-entries Maximum number of empty non-terminals in a zone
265 316
 #
266 317
 # max-ent-entries=100000
267 318
 
268 319
 #################################
269
-# max-nsec3-iterations	Limit the number of NSEC3 hash iterations
320
+# max-nsec3-iterations  Limit the number of NSEC3 hash iterations
270 321
 #
271 322
 # max-nsec3-iterations=500
272 323
 
273 324
 #################################
274
-# max-queue-length	Maximum queuelength before considering situation lost
325
+# max-queue-length  Maximum queuelength before considering situation lost
275 326
 #
276 327
 # max-queue-length=5000
277 328
 
278 329
 #################################
279
-# max-signature-cache-entries	Maximum number of signatures cache entries
330
+# max-signature-cache-entries Maximum number of signatures cache entries
280 331
 #
281 332
 # max-signature-cache-entries=
282 333
 
283 334
 #################################
284
-# max-tcp-connections	Maximum number of TCP connections
335
+# max-tcp-connections Maximum number of TCP connections
285 336
 #
286
-# max-tcp-connections=10
337
+# max-tcp-connections=20
287 338
 
288 339
 #################################
289
-# module-dir	Default directory for modules
340
+# module-dir  Default directory for modules
290 341
 #
291
-# module-dir=/usr/lib/TRIPLET/pdns
342
+
292 343
 
293 344
 #################################
294
-# negquery-cache-ttl	Seconds to store negative query results in the QueryCache
345
+# negquery-cache-ttl  Seconds to store negative query results in the QueryCache
295 346
 #
296 347
 # negquery-cache-ttl=60
297 348
 
298 349
 #################################
299
-# no-shuffle	Set this to prevent random shuffling of answers - for regression testing
350
+# no-shuffle  Set this to prevent random shuffling of answers - for regression testing
300 351
 #
301 352
 # no-shuffle=off
302 353
 
303 354
 #################################
304
-# only-notify	Only send AXFR NOTIFY to these IP addresses or netmasks
355
+# non-local-bind  Enable binding to non-local addresses by using FREEBIND / BINDANY socket options
356
+#
357
+# non-local-bind=no
358
+
359
+#################################
360
+# only-notify Only send AXFR NOTIFY to these IP addresses or netmasks
305 361
 #
306 362
 # only-notify=0.0.0.0/0,::/0
307 363
 
308 364
 #################################
309
-# out-of-zone-additional-processing	Do out of zone additional processing
365
+# out-of-zone-additional-processing Do out of zone additional processing
310 366
 #
311 367
 # out-of-zone-additional-processing=yes
312 368
 
313 369
 #################################
314
-# overload-queue-length	Maximum queuelength moving to packetcache only
370
+# outgoing-axfr-expand-alias  Expand ALIAS records during outgoing AXFR
315 371
 #
316
-# overload-queue-length=0
372
+# outgoing-axfr-expand-alias=no
317 373
 
318 374
 #################################
319
-# pipebackend-abi-version	Version of the pipe backend ABI
375
+# overload-queue-length Maximum queuelength moving to packetcache only
320 376
 #
321
-# pipebackend-abi-version=1
377
+# overload-queue-length=0
322 378
 
323 379
 #################################
324
-# prevent-self-notification	Don't send notifications to what we think is ourself
380
+# prevent-self-notification Don't send notifications to what we think is ourself
325 381
 #
326 382
 # prevent-self-notification=yes
327 383
 
328 384
 #################################
329
-# query-cache-ttl	Seconds to store query results in the QueryCache
385
+# query-cache-ttl Seconds to store query results in the QueryCache
330 386
 #
331 387
 # query-cache-ttl=20
332 388
 
333 389
 #################################
334
-# query-local-address	Source IP address for sending queries
390
+# query-local-address Source IP address for sending queries
335 391
 #
336 392
 # query-local-address=0.0.0.0
337 393
 
338 394
 #################################
339
-# query-local-address6	Source IPv6 address for sending queries
395
+# query-local-address6  Source IPv6 address for sending queries
340 396
 #
341 397
 # query-local-address6=::
342 398
 
343 399
 #################################
344
-# query-logging	Hint backends that queries should be logged
400
+# query-logging Hint backends that queries should be logged
345 401
 #
346 402
 # query-logging=no
347 403
 
348 404
 #################################
349
-# queue-limit	Maximum number of milliseconds to queue a query
405
+# queue-limit Maximum number of milliseconds to queue a query
350 406
 #
351 407
 # queue-limit=1500
352 408
 
353 409
 #################################
354
-# receiver-threads	Default number of receiver threads to start
410
+# receiver-threads  Default number of receiver threads to start
355 411
 #
356 412
 # receiver-threads=1
357 413
 
358 414
 #################################
359
-# recursive-cache-ttl	Seconds to store packets for recursive queries in the PacketCache
415
+# recursive-cache-ttl Seconds to store packets for recursive queries in the PacketCache
360 416
 #
361 417
 # recursive-cache-ttl=10
362 418
 
363 419
 #################################
364
-# recursor	If recursion is desired, IP address of a recursing nameserver
420
+# recursor  If recursion is desired, IP address of a recursing nameserver
365 421
 #
366 422
 recursor=PDNS_RECURSOR_HOST:53
367 423
 
368 424
 #################################
369
-# retrieval-threads	Number of AXFR-retrieval threads for slave operation
425
+# retrieval-threads Number of AXFR-retrieval threads for slave operation
370 426
 #
371 427
 # retrieval-threads=2
372 428
 
373 429
 #################################
374
-# reuseport	Enable higher performance on compliant kernels by using SO_REUSEPORT allowing each receiver thread to open its own socket
430
+# reuseport Enable higher performance on compliant kernels by using SO_REUSEPORT allowing each receiver thread to open its own socket
375 431
 #
376 432
 # reuseport=no
377 433
 
378 434
 #################################
379
-# security-poll-suffix	Domain name from which to query security update notifications
435
+# security-poll-suffix  Domain name from which to query security update notifications
380 436
 #
381 437
 # security-poll-suffix=secpoll.powerdns.com.
382 438
 
383 439
 #################################
384
-# send-root-referral	Send out old-fashioned root-referral instead of ServFail in case of no authority
385
-#
386
-# send-root-referral=no
387
-
388
-#################################
389
-# server-id	Returned when queried for 'server.id' TXT or NSID, defaults to hostname - disabled or custom
440
+# server-id Returned when queried for 'server.id' TXT or NSID, defaults to hostname - disabled or custom
390 441
 #
391 442
 # server-id=
392 443
 
393 444
 #################################
394
-# setgid	If set, change group id to this gid for more security
445
+# setgid  If set, change group id to this gid for more security
395 446
 #
396 447
 setgid=pdns
397 448
 
398 449
 #################################
399
-# setuid	If set, change user id to this uid for more security
450
+# setuid  If set, change user id to this uid for more security
400 451
 #
401 452
 setuid=pdns
402 453
 
403 454
 #################################
404
-# signing-threads	Default number of signer threads to start
455
+# signing-threads Default number of signer threads to start
405 456
 #
406 457
 # signing-threads=3
407 458
 
408 459
 #################################
409
-# slave	Act as a slave
460
+# slave Act as a slave
410 461
 #
411 462
 # slave=no
412 463
 
413 464
 #################################
414
-# slave-cycle-interval	Reschedule failed SOA serial checks once every .. seconds
465
+# slave-cycle-interval  Schedule slave freshness checks once every .. seconds
415 466
 #
416 467
 # slave-cycle-interval=60
417 468
 
418 469
 #################################
419
-# slave-renotify	If we should send out notifications for slaved updates
470
+# slave-renotify  If we should send out notifications for slaved updates
420 471
 #
421 472
 # slave-renotify=no
422 473
 
423 474
 #################################
424
-# soa-expire-default	Default SOA expire
475
+# soa-expire-default  Default SOA expire
425 476
 #
426 477
 # soa-expire-default=604800
427 478
 
428 479
 #################################
429
-# soa-minimum-ttl	Default SOA minimum ttl
480
+# soa-minimum-ttl Default SOA minimum ttl
430 481
 #
431 482
 # soa-minimum-ttl=3600
432 483
 
433 484
 #################################
434
-# soa-refresh-default	Default SOA refresh
485
+# soa-refresh-default Default SOA refresh
435 486
 #
436 487
 # soa-refresh-default=10800
437 488
 
438 489
 #################################
439
-# soa-retry-default	Default SOA retry
490
+# soa-retry-default Default SOA retry
440 491
 #
441 492
 # soa-retry-default=3600
442 493
 
443 494
 #################################
444
-# socket-dir	Where the controlsocket will live
495
+# socket-dir  Where the controlsocket will live, /var/run when unset and not chrooted
445 496
 #
446
-# socket-dir=/var/run
497
+# socket-dir=
447 498
 
448 499
 #################################
449
-# tcp-control-address	If set, PowerDNS can be controlled over TCP on this address
500
+# tcp-control-address If set, PowerDNS can be controlled over TCP on this address
450 501
 #
451 502
 # tcp-control-address=
452 503
 
453 504
 #################################
454
-# tcp-control-port	If set, PowerDNS can be controlled over TCP on this address
505
+# tcp-control-port  If set, PowerDNS can be controlled over TCP on this address
455 506
 #
456 507
 # tcp-control-port=53000
457 508
 
458 509
 #################################
459
-# tcp-control-range	If set, remote control of PowerDNS is possible over these networks only
510
+# tcp-control-range If set, remote control of PowerDNS is possible over these networks only
460 511
 #
461 512
 # tcp-control-range=127.0.0.0/8, 10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fe80::/10
462 513
 
463 514
 #################################
464
-# tcp-control-secret	If set, PowerDNS can be controlled over TCP after passing this secret
515
+# tcp-control-secret  If set, PowerDNS can be controlled over TCP after passing this secret
465 516
 #
466 517
 # tcp-control-secret=
467 518
 
468 519
 #################################
469
-# traceback-handler	Enable the traceback handler (Linux only)
520
+# traceback-handler Enable the traceback handler (Linux only)
470 521
 #
471 522
 # traceback-handler=yes
472 523
 
473 524
 #################################
474
-# trusted-notification-proxy	IP address of incoming notification proxy
525
+# trusted-notification-proxy  IP address of incoming notification proxy
475 526
 #
476 527
 # trusted-notification-proxy=
477 528
 
478 529
 #################################
479
-# udp-truncation-threshold	Maximum UDP response size before we truncate
530
+# udp-truncation-threshold  Maximum UDP response size before we truncate
480 531
 #
481 532
 # udp-truncation-threshold=1680
482 533
 
483 534
 #################################
484
-# version-string	PowerDNS version in packets - full, anonymous, powerdns or custom
535
+# version-string  PowerDNS version in packets - full, anonymous, powerdns or custom
485 536
 #
486 537
 # version-string=full
487 538
 
488 539
 #################################
489
-# webserver	Start a webserver for monitoring
540
+# webserver Start a webserver for monitoring
490 541
 #
491
-# webserver=no
542
+webserver=yes
492 543
 
493 544
 #################################
494
-# webserver-address	IP Address of webserver to listen on
545
+# webserver-address IP Address of webserver to listen on
495 546
 #
496
-# webserver-address=127.0.0.1
547
+webserver-address=0.0.0.0
497 548
 
498 549
 #################################
499
-# webserver-allow-from	Webserver access is only allowed from these subnets
550
+# webserver-allow-from  Webserver access is only allowed from these subnets
500 551
 #
501
-# webserver-allow-from=0.0.0.0/0,::/0
552
+webserver-allow-from=0.0.0.0/0,::/0
502 553
 
503 554
 #################################
504
-# webserver-password	Password required for accessing the webserver
555
+# webserver-password  Password required for accessing the webserver
505 556
 #
506
-# webserver-password=
557
+webserver-password=PDNS_WEBSERVER_PASSWORD
507 558
 
508 559
 #################################
509
-# webserver-port	Port of webserver to listen on
560
+# webserver-port  Port of webserver to listen on
510 561
 #
511
-# webserver-port=8081
562
+webserver-port=80
512 563
 
513 564
 #################################
514
-# webserver-print-arguments	If the webserver should print arguments
565
+# webserver-print-arguments If the webserver should print arguments
515 566
 #
516
-# webserver-print-arguments=no
567
+webserver-print-arguments=yes
517 568
 
569
+#################################
570
+# write-pid Write a PID file
571
+#
572
+# write-pid=yes
518 573
 
574
+#################################
575
+# xfr-max-received-mbytes Maximum number of megabytes received from an incoming XFR
576
+#
577
+# xfr-max-received-mbytes=100

+ 2
- 0
pdns/vars-vars View File

@@ -4,6 +4,8 @@ POSTGRES_PASSWORD
4 4
 POSTGRES_DB
5 5
 
6 6
 PDNS_RECURSOR_HOST
7
+PDNS_API_KEY
8
+PDNS_WEBSERVER_PASSWORD
7 9
 
8 10
 SESSION_KEY
9 11
 

+ 2
- 0
poweradmin/vars-vars View File

@@ -4,6 +4,8 @@ POSTGRES_PASSWORD
4 4
 POSTGRES_DB
5 5
 
6 6
 PDNS_RECURSOR_HOST
7
+PDNS_API_KEY
8
+PDNS_WEBSERVER_PASSWORD
7 9
 
8 10
 SESSION_KEY
9 11
 

Loading…
Cancel
Save