]> git.ipfire.org Git - thirdparty/pdns.git/blame - docs/settings.rst
take lmdb change from bf2b8dc94331b50bd839dc8f5b188664637c7b31
[thirdparty/pdns.git] / docs / settings.rst
CommitLineData
0e2063c3
PL
1Authoritative Server Settings
2=============================
3
4All PowerDNS Authoritative Server settings are listed here, excluding
5those that originate from backends, which are documented in the relevant
6chapters. These settings can be set inside ``pdns.conf`` or on the
7commandline when invoking the ``pdns`` binary.
8
9You can use ``+=`` syntax to set some variables incrementally, but this
10requires you to have at least one non-incremental setting for the
11variable to act as base setting. This is mostly useful for
12:ref:`setting-include-dir` directive.
13
14For boolean settings, specifying the name of the setting without a value
15means ``yes``.
16
17.. _setting-8bit-dns:
18
19``8bit-dns``
20------------
21
27f39e15 22- Boolean
0e2063c3
PL
23- Default: no
24
25.. versionadded:: 4.0.0
26
27Allow 8 bit DNS queries.
28
29.. _setting-allow-axfr-ips:
30
31``allow-axfr-ips``
32------------------
33
34- IP ranges, separated by commas
35- Default: 127.0.0.0/8,::1
36
37If set, only these IP addresses or netmasks will be able to perform
38AXFR.
39
40.. _setting-allow-dnsupdate-from:
41
42``allow-dnsupdate-from``
43------------------------
44
45- IP ranges, separated by commas
88d771bc 46- Default: 127.0.0.0/8,::1
0e2063c3 47
4991656e 48Allow DNS updates from these IP ranges. Set to empty string to honour ``ALLOW-DNSUPDATE-FROM`` in :ref:`metadata-allow-dnsupdate-from`.
0e2063c3
PL
49
50.. _setting-allow-notify-from:
51
52``allow-notify-from``
53---------------------
54
55- IP ranges, separated by commas
56- Default: 0.0.0.0/0,::/0
57
58Allow AXFR NOTIFY from these IP ranges. Setting this to an empty string
59will drop all incoming notifies.
60
43f61934
GD
61.. _setting-allow-recursion:
62
63``allow-recursion``
64-------------------
65
66- IP ranges, separated by commas
67- Default: 0.0.0.0/0
68
69.. deprecated:: 4.1.0
70 Recursion has been removed, see :doc:`guides/recursion`
71
72By specifying ``allow-recursion``, recursion can be restricted to
73netmasks specified. The default is to allow recursion from everywhere.
74Example: ``allow-recursion=198.51.100.0/24, 10.0.0.0/8, 192.0.2.4``.
75
0e2063c3
PL
76.. _setting-allow-unsigned-notify:
77
78``allow-unsigned-notify``
79-------------------------
80
81- Boolean
82- Default: yes
83
84.. versionadded:: 4.0.0
85
86Turning this off requires all notifications that are received to be
87signed by valid TSIG signature for the zone.
88
89.. _setting-allow-unsigned-supermaster:
90
91``allow-unsigned-supermaster``
92------------------------------
93
94- Boolean
95- Default: yes
96
97.. versionadded:: 4.0.0
98
99Turning this off requires all supermaster notifications to be signed by
100valid TSIG signature. It will accept any existing key on slave.
101
0e2063c3
PL
102.. _setting-also-notify:
103
104``also-notify``
105---------------
106
107- IP addresses, separated by commas
108
109When notifying a domain, also notify these nameservers. Example:
110``also-notify=192.0.2.1, 203.0.113.167``. The IP addresses listed in
111``also-notify`` always receive a notification. Even if they do not match
112the list in :ref:`setting-only-notify`.
113
114.. _setting-any-to-tcp:
115
116``any-to-tcp``
117--------------
118
119- Boolean
120- Default: yes
121
08532264
GD
122.. versionchanged:: 4.0.1
123 was 'no' before.
0e2063c3
PL
124
125Answer questions for the ANY on UDP with a truncated packet that refers
126the remote server to TCP. Useful for mitigating reflection attacks.
127
128.. _setting-api:
129
130``api``
131-------
132
133- Boolean
134- Default: no
135
136Enable/disable the :doc:`http-api/index`.
137
138.. _setting-api-key:
139
140``api-key``
141-----------
142
143- String
144
145.. versionadded:: 4.0.0
146
147Static pre-shared authentication key for access to the REST API.
148
149.. _setting-api-readonly:
150
151``api-readonly``
152----------------
153
154- Boolean
155- Default: no
156
157.. versionadded:: 4.0.0
85be413d 158.. versionchanged:: 4.2.0
da7a5d84 159 This setting has been removed in 4.2.0.
0e2063c3
PL
160
161Disallow data modification through the REST API when set.
162
e3619f57
MH
163.. _setting-axfr-fetch-timeout:
164
165``axfr-fetch-timeout``
166----------------------
167
168- Integer
169- Default: 10
170
171.. versionadded:: 4.3.0
172
173Maximum time in seconds for inbound AXFR to start or be idle after starting.
174
0e2063c3
PL
175.. _setting-axfr-lower-serial:
176
177``axfr-lower-serial``
178---------------------
179
180- Boolean
181- Default: no
182
183.. versionadded:: 4.0.4
184
185Also AXFR a zone from a master with a lower serial.
186
187.. _setting-cache-ttl:
188
189``cache-ttl``
190-------------
191
192- Integer
193- Default: 20
194
828e5107 195Seconds to store packets in the :ref:`packet-cache`. A value of 0 will disable the cache.
0e2063c3 196
43f61934
GD
197.. _setting-carbon-instance:
198
199``carbon-instance``
200-------------------
201
202- String
203- Default: auth
204
205.. versionadded:: 4.2.0
206
207Set the instance or third string of the metric key. Be careful not to include
208any dots in this setting, unless you know what you are doing.
209See :ref:`metricscarbon`
210
211.. _setting-carbon-interval:
212
213``carbon-interval``
214-------------------
215
216- Integer
217- Default: 30
218
219If sending carbon updates, this is the interval between them in seconds.
220See :ref:`metricscarbon`.
221
b0d4aa0b
G
222.. _setting-carbon-namespace:
223
224``carbon-namespace``
225--------------------
226
227- String
228- Default: pdns
229
7dd919af
G
230.. versionadded:: 4.2.0
231
b0d4aa0b
G
232Set the namespace or first string of the metric key. Be careful not to include
233any dots in this setting, unless you know what you are doing.
234See :ref:`metricscarbon`
235
0e2063c3
PL
236.. _setting-carbon-ourname:
237
238``carbon-ourname``
239------------------
240
241- String
242- Default: the hostname of the server
243
244If sending carbon updates, if set, this will override our hostname. Be
245careful not to include any dots in this setting, unless you know what
246you are doing. See :ref:`metricscarbon`
247
248.. _setting-carbon-server:
249
250``carbon-server``
251-----------------
252
253- IP Address
254
255Send all available metrics to this server via the carbon protocol, which
256is used by graphite and metronome. It has to be an address (no
fd47d762
S
257hostnames). Moreover you can specify more than one server using a comma delimited list, ex:
258carbon-server=10.10.10.10,10.10.10.20.
259You may specify an alternate port by appending :port, ex:
0e2063c3
PL
260127.0.0.1:2004. See :ref:`metricscarbon`.
261
0e2063c3
PL
262.. _setting-chroot:
263
264``chroot``
265----------
266
267- Path
268
269If set, chroot to this directory for more security. See :doc:`security`.
270
271Make sure that ``/dev/log`` is available from within the chroot. Logging
272will silently fail over time otherwise (on logrotate).
273
274When setting ``chroot``, all other paths in the config (except for
275:ref:`setting-config-dir` and :ref:`setting-module-dir`)
276set in the configuration are relative to the new root.
277
278When running on a system where systemd manages services, ``chroot`` does
279not work out of the box, as PowerDNS cannot use the ``NOTIFY_SOCKET``.
280Either don't ``chroot`` on these systems or set the 'Type' of the this
281service to 'simple' instead of 'notify' (refer to the systemd
282documentation on how to modify unit-files)
283
284.. _setting-config-dir:
285
286``config-dir``
287--------------
288
289- Path
290
291Location of configuration directory (``pdns.conf``). Usually
292``/etc/powerdns``, but this depends on ``SYSCONFDIR`` during
293compile-time.
294
295.. _setting-config-name:
296
297``config-name``
298---------------
299
300- String
301
302Name of this virtual configuration - will rename the binary image. See
303:doc:`guides/virtual-instances`.
304
305.. _setting-control-console:
306
307``control-console``
308-------------------
309
310Debugging switch - don't use.
311
312.. _setting-daemon:
313
314``daemon``
315----------
316
317- Boolean
318- Default: no
319
320Operate as a daemon.
321
b8cd24cc
SH
322.. _setting-default-api-rectify:
323
324``default-api-rectify``
325-----------------------
326- Boolean
327- Default: yes
328
329.. versionadded:: 4.2.0
330
331The value of :ref:`metadata-api-rectify` if it is not set on the zone.
332
333.. note::
334 Pre 4.2.0 the default was always no.
335
0e2063c3 336.. _setting-default-ksk-algorithms:
c01b3507 337.. _setting-default-ksk-algorithm:
0e2063c3 338
c01b3507 339``default-ksk-algorithm``
da7a5d84 340-------------------------
0e2063c3
PL
341
342- String
343- Default: ecdsa256
344
c01b3507 345.. versionchanged:: 4.1.0
28080ce6 346 Renamed from ``default-ksk-algorithms``. No longer supports multiple algorithm names.
c01b3507 347
0e2063c3 348The algorithm that should be used for the KSK when running
af28a1c2 349:doc:`pdnsutil secure-zone <manpages/pdnsutil.1>` or using the :doc:`Zone API endpoint <http-api/cryptokey>`
28080ce6
PL
350to enable DNSSEC. Must be one of:
351
28080ce6
PL
352* rsasha1
353* rsasha256
0e2063c3 354* rsasha512
28080ce6
PL
355* ecdsa256 (ECDSA P-256 with SHA256)
356* ecdsa384 (ECDSA P-384 with SHA384)
0e2063c3 357* ed25519
37356d71 358* ed448
0e2063c3 359
28080ce6
PL
360.. note::
361 Actual supported algorithms depend on the crypto-libraries
362 PowerDNS was compiled against. To check the supported DNSSEC algoritms
363 in your build of PowerDNS, run ``pdnsutil list-algorithms``.
364
0e2063c3
PL
365.. _setting-default-ksk-size:
366
367``default-ksk-size``
368--------------------
369
370- Integer
c01b3507 371- Default: whichever is default for `default-ksk-algorithm`_
0e2063c3
PL
372
373The default keysize for the KSK generated with :doc:`pdnsutil secure-zone <dnssec/pdnsutil>`.
28080ce6 374Only relevant for algorithms with non-fixed keysizes (like RSA).
0e2063c3 375
0e2063c3
PL
376.. _setting-default-soa-edit:
377
378``default-soa-edit``
379--------------------
380
381- String
382- Default: empty
383
384Use this soa-edit value for all zones if no
385:ref:`metadata-soa-edit` metadata value is set.
386
387.. _setting-default-soa-edit-signed:
388
389``default-soa-edit-signed``
390---------------------------
391
392- String
393- Default: empty
394
395Use this soa-edit value for all signed zones if no
396:ref:`metadata-soa-edit` metadata value is set.
397Overrides :ref:`setting-default-soa-edit`
398
399.. _setting-default-soa-mail:
400
401``default-soa-mail``
402--------------------
403
404- String
405
d57f0fa6
KM
406.. deprecated:: 4.2.0
407 This setting has been deprecated and will be removed in 4.3.0
408
0e2063c3
PL
409Mail address to insert in the SOA record if none set in the backend.
410
43f61934
GD
411.. _setting-default-soa-name:
412
413``default-soa-name``
414--------------------
415
416- String
417- Default: a.misconfigured.powerdns.server
418
d57f0fa6
KM
419.. deprecated:: 4.2.0
420 This setting has been deprecated and will be removed in 4.3.0
421
43f61934
GD
422Name to insert in the SOA record if none set in the backend.
423
0e2063c3
PL
424.. _setting-default-ttl:
425
426``default-ttl``
427---------------
428
429- Integer
430- Default: 3600
431
432TTL to use when none is provided.
433
434.. _setting-default-zsk-algorithms:
c01b3507 435.. _setting-default-zsk-algorithm:
0e2063c3 436
c01b3507 437``default-zsk-algorithm``
0e2063c3
PL
438--------------------------
439
440- String
441- Default: (empty)
442
c01b3507
PL
443.. versionchanged:: 4.1.0
444 Renamed from ``default-zsk-algorithms``. Does no longer support multiple algorithm names.
445
0e2063c3 446The algorithm that should be used for the ZSK when running
af28a1c2 447:doc:`pdnsutil secure-zone <manpages/pdnsutil.1>` or using the :doc:`Zone API endpoint <http-api/cryptokey>`
28080ce6
PL
448to enable DNSSEC. Must be one of:
449
28080ce6
PL
450* rsasha1
451* rsasha256
0e2063c3 452* rsasha512
28080ce6
PL
453* ecdsa256 (ECDSA P-256 with SHA256)
454* ecdsa384 (ECDSA P-384 with SHA384)
0e2063c3 455* ed25519
37356d71 456* ed448
0e2063c3 457
28080ce6
PL
458.. note::
459 Actual supported algorithms depend on the crypto-libraries
460 PowerDNS was compiled against. To check the supported DNSSEC algoritms
461 in your build of PowerDNS, run ``pdnsutil list-algorithms``.
462
0e2063c3
PL
463.. _setting-default-zsk-size:
464
465``default-zsk-size``
466--------------------
467
468- Integer
c01b3507 469- Default: 0 (automatic default for `default-zsk-algorithm`_)
0e2063c3
PL
470
471The default keysize for the ZSK generated with :doc:`pdnsutil secure-zone <dnssec/pdnsutil>`.
28080ce6 472Only relevant for algorithms with non-fixed keysizes (like RSA).
0e2063c3
PL
473
474.. _setting-direct-dnskey:
475
476``direct-dnskey``
477-----------------
478
479- Boolean
480- Default: no
481
16d72778
OS
482Read additional DNSKEY, CDS and CDNSKEY records from the records table/your BIND zonefile. If not
483set, DNSKEY, CDS and CDNSKEY records in the zonefiles are ignored.
0e2063c3
PL
484
485.. _setting-disable-axfr:
486
487``disable-axfr``
488----------------
489
490- Boolean
491- Default: no
492
493Do not allow zone transfers.
494
495.. _setting-disable-axfr-rectify:
496
497``disable-axfr-rectify``
498------------------------
499
500- Boolean
501- Default: no
502
503Disable the rectify step during an outgoing AXFR. Only required for
504regression testing.
505
506.. _setting-disable-syslog:
507
508``disable-syslog``
509------------------
510
511- Boolean
512- Default: no
513
514Do not log to syslog, only to stdout. Use this setting when running
515inside a supervisor that handles logging (like systemd).
516
964d0eb6 517.. warning::
0e2063c3
PL
518 Do not use this setting in combination with :ref:`setting-daemon` as all
519 logging will disappear.
520
521.. _setting-disable-tcp:
522
523``disable-tcp``
524---------------
525
526- Boolean
527- Default: no
528
998fddc3
PL
529.. versionchanged:: 4.2.0
530 This setting has been removed
531
0e2063c3
PL
532Do not listen to TCP queries. Breaks RFC compliance.
533
534.. _setting-distributor-threads:
535
536``distributor-threads``
537-----------------------
538
539- Integer
540- Default: 3
541
542Number of Distributor (backend) threads to start per receiver thread.
543See :doc:`performance`.
544
545.. _setting-dname-processing:
546
547``dname-processing``
548--------------------
549
550- Boolean
551- Default: no
552
553Synthesise CNAME records from DNAME records as required. This
554approximately doubles query load. **Do not combine with DNSSEC!**
555
556.. _setting-dnssec-key-cache-ttl:
557
558``dnssec-key-cache-ttl``
559------------------------
560
561- Integer
562- Default: 30
563
564Seconds to cache DNSSEC keys from the database. A value of 0 disables
565caching.
566
567.. _setting-dnsupdate:
568
569``dnsupdate``
570-------------
571
572- Boolean
573- Default: no
574
575Enable/Disable DNS update (RFC2136) support. See :doc:`dnsupdate` for more.
576
577.. _setting-do-ipv6-additional-processing:
578
579``do-ipv6-additional-processing``
580---------------------------------
581
582- Boolean
583- Default: yes
584
585Perform AAAA additional processing. This sends AAAA records in the
586ADDITIONAL section when sending a referral.
587
588.. _setting-domain-metadata-cache-ttl:
589
590``domain-metadata-cache-ttl``
591-----------------------------
592
593- Integer
594- Default: 60
595
596Seconds to cache domain metadata from the database. A value of 0
597disables caching.
598
599.. _setting-edns-subnet-processing:
600
601``edns-subnet-processing``
602--------------------------
603
604- Boolean
605- Default: no
606
607Enables EDNS subnet processing, for backends that support it.
608
af68014f
CHB
609.. _setting-enable-lua-records:
610
611``enable-lua-records``
4fb906ee 612----------------------
af68014f 613
afafac85 614- One of ``no``, ``yes`` (or empty), or ``shared``, String
af68014f
CHB
615- Default: no
616
afafac85
PD
617.. versionadded:: 4.2.0
618
619Globally enable the :doc:`LUA records <lua-records/index>` feature.
620
621To use shared LUA states, set this to ``shared``, see :ref:`lua-records-shared-state`.
af68014f 622
0e2063c3
PL
623.. _setting-entropy-source:
624
625``entropy-source``
626------------------
627
628- Path
629- Default: /dev/urandom
630
631Entropy source file to use.
632
633.. _setting-expand-alias:
634
635``expand-alias``
636----------------
637
638- Boolean
639- Default: no
d99d1243
PL
640
641.. versionadded:: 4.1.0
0e2063c3
PL
642
643If this is enabled, ALIAS records are expanded (synthesised to their
644A/AAAA).
645
81b050b3 646If this is disabled (the default), ALIAS records will not be expanded and
0e2063c3
PL
647the server will will return NODATA for A/AAAA queries for such names.
648
d5eff893
GD
649.. note::
650 :ref:`setting-resolver` must also be set for ALIAS expansion to work!
0e2063c3 651
d5eff893
GD
652.. note::
653 In PowerDNS Authoritative Server 4.0.x, this setting did not exist and
654 ALIAS was always expanded.
0e2063c3
PL
655
656.. _setting-forward-dnsupdate:
657
658``forward-dnsupdate``
659---------------------
660
661- Boolean
662- Default: no
663
664Forward DNS updates sent to a slave to the master.
665
666.. _setting-forward-notify:
667
668``forward-notify``
669------------------
670
671- IP addresses, separated by commas
672
673IP addresses to forward received notifications to regardless of master
674or slave settings.
675
676.. note::
677 The intended use is in anycast environments where it might be
678 necessary for a proxy server to perform the AXFR. The usual checks are
679 performed before any received notification is forwarded.
680
681.. _setting-guardian:
682
683``guardian``
684------------
685
686- Boolean
687- Default: no
688
689Run within a guardian process. See :ref:`running-guardian`.
690
691.. _setting-include-dir:
692
693``include-dir``
694---------------
695
696- Path
697
698Directory to scan for additional config files. All files that end with
699.conf are loaded in order using ``POSIX`` as locale.
700
701.. _setting-launch:
702
703``launch``
704----------
705
706- Backend names, separated by commas
707
708Which backends to launch and order to query them in. Launches backends.
709In its most simple form, supply all backends that need to be launched.
710e.g.
711
633489be 712.. code-block:: ini
0e2063c3
PL
713
714 launch=bind,gmysql,remote
715
716If you find that you need to query a backend multiple times with
717different configuration, you can specify a name for later
718instantiations. e.g.:
719
633489be 720.. code-block:: ini
0e2063c3
PL
721
722 launch=gmysql,gmysql:server2
723
724In this case, there are 2 instances of the gmysql backend, one by the
725normal name and the second one is called 'server2'. The backend
726configuration item names change: e.g. ``gmysql-host`` is available to
727configure the ``host`` setting of the first or main instance, and
728``gmysql-server2-host`` for the second one.
729
efdd3d7c 730Running multiple instances of the BIND backend is not allowed.
ea4d3e1d 731
0e2063c3
PL
732.. _setting-load-modules:
733
734``load-modules``
735----------------
736
737- Paths, separated by commas
738
739If backends are available in nonstandard directories, specify their
740location here. Multiple files can be loaded if separated by commas. Only
741available in non-static distributions.
742
743.. _setting-local-address:
744
745``local-address``
746-----------------
747
748- IPv4 Addresses, separated by commas or whitespace
749- Default: 0.0.0.0
750
751Local IP address to which we bind. It is highly advised to bind to
752specific interfaces and not use the default 'bind to any'. This causes
753big problems if you have multiple IP addresses. Unix does not provide a
754way of figuring out what IP address a packet was sent to when binding to
755any.
756
0e2063c3
PL
757.. _setting-local-address-nonexist-fail:
758
759``local-address-nonexist-fail``
760-------------------------------
761
762- Boolean
763- Default: no
764
765Fail to start if one or more of the
766:ref:`setting-local-address`'s do not exist on this server.
767
768.. _setting-local-ipv6:
769
770``local-ipv6``
771--------------
772
773- IPv6 Addresses, separated by commas or whitespace
774- Default: '::'
775
776Local IPv6 address to which we bind. It is highly advised to bind to
777specific interfaces and not use the default 'bind to any'. This causes
778big problems if you have multiple IP addresses.
779
780.. _setting-local-ipv6-nonexist-fail:
781
782``local-ipv6-nonexist-fail``
783----------------------------
784
785- Boolean
786- Default: no
787
788Fail to start if one or more of the :ref:`setting-local-ipv6`
789addresses do not exist on this server.
790
791.. _setting-local-port:
792
793``local-port``
794--------------
795
796- Integer
797- Default: 53
798
799The port on which we listen. Only one port possible.
800
801.. _setting-log-dns-details:
802
803``log-dns-details``
804-------------------
805
806- Boolean
807- Default: no
808
809If set to 'no', informative-only DNS details will not even be sent to
810syslog, improving performance.
811
43f61934
GD
812.. _setting-log-dns-queries:
813
814``log-dns-queries``
815-------------------
816
817- Boolean
818- Default: no
819
820Tell PowerDNS to log all incoming DNS queries. This will lead to a lot
821of logging! Only enable for debugging! Set :ref:`setting-loglevel`
822to at least 5 to see the logs.
823
824.. _setting-log-timestamp:
825
826``log-timestamp``
827-----------------
828
829- Bool
830- Default: yes
831
832.. versionadded:: 4.1.0
833
834When printing log lines to stdout, prefix them with timestamps.
835Disable this if the process supervisor timestamps these lines already.
836
837.. note::
838 The systemd unit file supplied with the source code already disables timestamp printing
839
0e2063c3
PL
840.. _setting-logging-facility:
841
842``logging-facility``
843--------------------
844
845If set to a digit, logging is performed under this LOCAL facility. See :ref:`logging-to-syslog`.
846Do not pass names like 'local0'!
847
848.. _setting-loglevel:
849
850``loglevel``
851------------
852
853- Integer
854- Default: 4
855
e7e225a7
PL
856Amount of logging. Higher is more. Do not set below 3. Corresponds to "syslog" level values,
857e.g. error = 3, warning = 4, notice = 5, info = 6
0e2063c3 858
43f61934 859.. _setting-lua-axfr-script:
0e2063c3 860
43f61934 861``lua-axfr-script``
0e2063c3
PL
862-------------------
863
43f61934
GD
864- String
865- Default: empty
0e2063c3 866
43f61934
GD
867.. versionadded:: 4.1.0
868
869Script to be used to edit incoming AXFRs, see :ref:`modes-of-operation-axfrfilter`
0e2063c3
PL
870
871.. _setting-lua-prequery-script:
872
873``lua-prequery-script``
874-----------------------
875
876- Path
877
878Lua script to run before answering a query. This is a feature used
879internally for regression testing. The API of this functionality is not
880guaranteed to be stable, and is in fact likely to change.
881
43f61934
GD
882.. _setting-lua-records-exec-limit:
883
884``lua-records-exec-limit``
885-----------------------------
886
887- Integer
888- Default: 1000
889
890Limit LUA records scripts to ``lua-records-exec-limit`` instructions.
891Setting this to any value less than or equal to 0 will set no limit.
892
0e2063c3
PL
893.. _setting-master:
894
895``master``
896----------
897
898- Boolean
899- Default: no
900
901Turn on master support. See :ref:`master-operation`.
902
903.. _setting-max-cache-entries:
904
905``max-cache-entries``
906---------------------
907
908- Integer
909- Default: 1000000
910
d99d1243
PL
911.. versionchanged:: 4.1.0
912 The packet and query caches are distinct. Previously, this setting was used for
9e461099 913 both the packet and query caches. See :ref:`setting-max-packet-cache-entries` for
d99d1243
PL
914 the packet-cache setting.
915
0e2063c3 916Maximum number of entries in the query cache. 1 million (the default)
d99d1243 917will generally suffice for most installations.
0e2063c3
PL
918
919.. _setting-max-ent-entries:
920
921``max-ent-entries``
922-------------------
923
924- Integer
925- Default: 100000
926
927Maximum number of empty non-terminals to add to a zone. This is a
928protection measure to avoid database explosion due to long names.
929
ba3d53d1
RG
930.. _setting-max-generate-steps:
931
932``max-generate-steps``
933----------------------
934
935.. versionadded:: 4.3.0
936
937- Integer
938- Default: 0
939
940Maximum number of steps for a '$GENERATE' directive when parsing a
941zone file. This is a protection measure to prevent consuming a lot of
942CPU and memory when untrusted zones are loaded. Default to 0 which
943means unlimited.
944
0e2063c3
PL
945.. _setting-max-nsec3-iterations:
946
947``max-nsec3-iterations``
948------------------------
949
950- Integer
951- Default: 500
952
f02f619d
GD
953Limit the number of NSEC3 hash iterations for zone configurations.
954For more information see :ref:`dnssec-operational-nsec-modes-params`.
0e2063c3
PL
955
956.. _setting-max-packet-cache-entries:
957
958``max-packet-cache-entries``
959----------------------------
960
961- Integer
962- Default: 1000000
963
d99d1243
PL
964.. versionadded:: 4.1.0
965
0e2063c3 966Maximum number of entries in the packet cache. 1 million (the default)
d99d1243 967will generally suffice for most installations.
0e2063c3
PL
968
969.. _setting-max-queue-length:
970
971``max-queue-length``
972--------------------
973
974- Integer
975- Default: 5000
976
977If this many packets are waiting for database attention, consider the
978situation hopeless and respawn.
979
980.. _setting-max-signature-cache-entries:
981
982``max-signature-cache-entries``
983-------------------------------
984
985- Integer
57b16af7 986- Default: 2^31-1 (on most systems), 2^63-1 (on ILP64 systems)
0e2063c3
PL
987
988Maximum number of signatures cache entries
989
990.. _setting-max-tcp-connection-duration:
991
992``max-tcp-connection-duration``
993-------------------------------
994
995- Integer
996- Default: 0
997
998Maximum time in seconds that a TCP DNS connection is allowed to stay
999open. 0 means unlimited. Note that exchanges related to an AXFR or IXFR
1000are not affected by this setting.
1001
1002.. _setting-max-tcp-connections:
1003
1004``max-tcp-connections``
1005-----------------------
1006
1007- Integer
1008- Default: 20
1009
1010Allow this many incoming TCP DNS connections simultaneously.
1011
1012.. _setting-max-tcp-connections-per-client:
1013
1014``max-tcp-connections-per-client``
1015----------------------------------
1016
1017- Integer
1018- Default: 0
1019
1020Maximum number of simultaneous TCP connections per client. 0 means
1021unlimited.
1022
1023.. _setting-max-tcp-transactions-per-conn:
1024
1025``max-tcp-transactions-per-conn``
1026---------------------------------
1027
1028- Integer
1029- Default: 0
1030
1031Allow this many DNS queries in a single TCP transaction. 0 means
1032unlimited. Note that exchanges related to an AXFR or IXFR are not
1033affected by this setting.
1034
1035.. _setting-module-dir:
1036
1037``module-dir``
1038--------------
1039
1040- Path
1041
1042Directory for modules. Default depends on ``PKGLIBDIR`` during
1043compile-time.
1044
1045.. _setting-negquery-cache-ttl:
1046
1047``negquery-cache-ttl``
1048----------------------
1049
1050- Integer
1051- Default: 60
1052
9e461099 1053Seconds to store queries with no answer in the Query Cache. See :ref:`query-cache`.
0e2063c3
PL
1054
1055.. _setting-no-config:
1056
1057``no-config``
1058-------------
1059
1060- Boolean
1061- Default: no
1062
3eee5ed0
GD
1063Do not attempt to read the configuration file. Useful for configuration
1064by parameters from the command line only.
0e2063c3
PL
1065
1066.. _setting-no-shuffle:
1067
1068``no-shuffle``
1069--------------
1070
1071- Boolean
1072- Default: no
1073
1074Do not attempt to shuffle query results, used for regression testing.
1075
43f61934 1076.. _setting-non-local-bind:
0e2063c3 1077
43f61934
GD
1078``non-local-bind``
1079------------------
0e2063c3
PL
1080
1081- Boolean
43f61934 1082- Default: no
0e2063c3 1083
43f61934
GD
1084Bind to addresses even if one or more of the
1085:ref:`setting-local-address`'s do not exist on this server.
1086Setting this option will enable the needed socket options to allow
1087binding to non-local addresses. This feature is intended to facilitate
1088ip-failover setups, but it may also mask configuration issues and for
1089this reason it is disabled by default.
0e2063c3
PL
1090
1091.. _setting-only-notify:
1092
1093``only-notify``
1094---------------
1095
1096- IP Ranges, separated by commas or whitespace
1097- Default: 0.0.0.0/0, ::/0
1098
1099For type=MASTER zones (or SLAVE zones with slave-renotify enabled)
1100PowerDNS automatically sends NOTIFYs to the name servers specified in
1101the NS records. By specifying networks/mask as whitelist, the targets
1102can be limited. The default is to notify the world. To completely
1103disable these NOTIFYs set ``only-notify`` to an empty value. Independent
1104of this setting, the IP addresses or netmasks configured with
1105:ref:`setting-also-notify` and ``ALSO-NOTIFY`` domain metadata
1106always receive AXFR NOTIFYs.
1107
22928c2f
PL
1108IP addresses and netmasks can be excluded by prefixing them with a ``!``.
1109To notify all IP addresses apart from the 192.168.0.0/24 subnet use the following::
1110
1111 only-notify=0.0.0.0/0, ::/0, !192.168.0.0/24
1112
0e2063c3
PL
1113.. note::
1114 Even if NOTIFYs are limited by a netmask, PowerDNS first has to
1115 resolve all the hostnames to check their IP addresses against the
1116 specified whitelist. The resolving may take considerable time,
1117 especially if those hostnames are slow to resolve. If you do not need to
1118 NOTIFY the slaves defined in the NS records (e.g. you are using another
1119 method to distribute the zone data to the slaves), then set
1120 :ref:`setting-only-notify` to an empty value and specify the notification targets
1121 explicitly using :ref:`setting-also-notify` and/or
1122 :ref:`metadata-also-notify` domain metadata to avoid this potential bottleneck.
1123
f8d48529 1124.. note::
81b050b3 1125 If your slaves support an Internet Protocol version, which your master does not,
fd47d762 1126 then set ``only-notify`` to include only supported protocol version.
f8d48529 1127 Otherwise there will be error trying to resolve address.
fd47d762
S
1128
1129 For example, slaves support both IPv4 and IPv6, but PowerDNS master have only IPv4,
633489be
GD
1130 so allow only IPv4 with ``only-notify``:
1131
1132 .. code-block:: ini
fd47d762 1133
f8d48529
AS
1134 only-notify=0.0.0.0/0
1135
0e2063c3
PL
1136.. _setting-out-of-zone-additional-processing:
1137
1138``out-of-zone-additional-processing``
1139-------------------------------------
1140
1141- Boolean
1142- Default: yes
1143
76c250a6
GD
1144.. deprecated:: 4.2.0
1145 This setting has been removed.
1146
0e2063c3
PL
1147Do out of zone additional processing. This means that if a malicious
1148user adds a '.com' zone to your server, it is not used for other domains
1149and will not contaminate answers. Do not enable this setting if you run
1150a public DNS service with untrusted users.
1151
1152The docs had previously indicated that the default was "no", but the
1153default has been "yes" since 2005.
1154
1155.. _setting-outgoing-axfr-expand-alias:
1156
1157``outgoing-axfr-expand-alias``
1158------------------------------
1159
1160- Boolean
1161- Default: no
1162
1163If this is enabled, ALIAS records are expanded (synthesised to their
1164A/AAAA) during outgoing AXFR. This means slaves will not automatically
1165follow changes in those A/AAAA records unless you AXFR regularly!
1166
1167If this is disabled (the default), ALIAS records are sent verbatim
1168during outgoing AXFR. Note that if your slaves do not support ALIAS,
1169they will return NODATA for A/AAAA queries for such names.
1170
43f61934
GD
1171.. _setting-overload-queue-length:
1172
1173``overload-queue-length``
1174-------------------------
1175
1176- Integer
1177- Default: 0 (disabled)
1178
1179If this many packets are waiting for database attention, answer any new
1180questions strictly from the packet cache.
1181
0e2063c3
PL
1182.. _setting-prevent-self-notification:
1183
1184``prevent-self-notification``
1185-----------------------------
1186
1187- Boolean
1188- Default: yes
1189
1190PowerDNS Authoritative Server attempts to not send out notifications to
1191itself in master mode. In very complicated situations we could guess
1192wrong and not notify a server that should be notified. In that case, set
1193prevent-self-notification to "no".
1194
1195.. _setting-query-cache-ttl:
1196
1197``query-cache-ttl``
1198-------------------
1199
1200- Integer
1201- Default: 20
1202
1203Seconds to store queries with an answer in the Query Cache. See :ref:`query-cache`.
1204
1205.. _setting-query-local-address:
1206
1207``query-local-address``
1208-----------------------
1209
1210- IPv4 Address
1211- Default: 0.0.0.0
1212
1213The IP address to use as a source address for sending queries. Useful if
1214you have multiple IPs and PowerDNS is not bound to the IP address your
1215operating system uses by default for outgoing packets.
1216
1217.. _setting-query-local-address6:
1218
1219``query-local-address6``
1220------------------------
1221
1222- IPv6 Address
1223- Default: '::'
1224
1225Source IP address for sending IPv6 queries.
1226
1227.. _setting-query-logging:
1228
1229``query-logging``
1230-----------------
1231
1232- Boolean
1233- Default: no
1234
1235Boolean, hints to a backend that it should log a textual representation
1236of queries it performs. Can be set at runtime.
1237
1238.. _setting-queue-limit:
1239
1240``queue-limit``
1241---------------
1242
1243- Integer
1244- Default: 1500
1245
1246Maximum number of milliseconds to queue a query. See :doc:`performance`.
1247
1248.. _setting-receiver-threads:
1249
1250``receiver-threads``
1251--------------------
1252
1253- Integer
1254- Default: 1
1255
1256Number of receiver (listening) threads to start. See :doc:`performance`.
1257
1258.. _setting-recursive-cache-ttl:
1259
1260``recursive-cache-ttl``
1261-----------------------
1262
1263- Integer
1264- Default: 10
d99d1243
PL
1265
1266.. deprecated:: 4.1.0
1267 Recursion has been removed, see :doc:`guides/recursion`
0e2063c3
PL
1268
1269Seconds to store recursive packets in the :ref:`packet-cache`.
1270
1271.. _setting-recursor:
1272
1273``recursor``
1274------------
1275
1276- IP Address
1277
1278.. deprecated:: 4.1.0
d99d1243 1279 Recursion has been removed, see :doc:`guides/recursion`
0e2063c3
PL
1280
1281If set, recursive queries will be handed to the recursor specified here.
1282
1283.. _setting-resolver:
1284
1285``resolver``
1286------------
1287
1288- IP Addresses with optional port, separated by commas
d99d1243
PL
1289
1290.. versionadded:: 4.1.0
0e2063c3
PL
1291
1292Use these resolver addresses for ALIAS and the internal stub resolver.
1293If this is not set, ``/etc/resolv.conf`` is parsed for upstream
1294resolvers.
1295
1296.. _setting-retrieval-threads:
1297
1298``retrieval-threads``
1299---------------------
1300
1301- Integer
1302- Default: 2
1303
1304Number of AXFR slave threads to start.
1305
43f61934
GD
1306.. _setting-reuseport:
1307
1308``reuseport``
1309-------------
1310
1311- Boolean
1312- Default: No
1313
1314On Linux 3.9 and some BSD kernels the ``SO_REUSEPORT`` option allows
1315each receiver-thread to open a new socket on the same port which allows
1316for much higher performance on multi-core boxes. Setting this option
1317will enable use of ``SO_REUSEPORT`` when available and seamlessly fall
1318back to a single socket when it is not available. A side-effect is that
1319you can start multiple servers on the same IP/port combination which may
1320or may not be a good idea. You could use this to enable transparent
1321restarts, but it may also mask configuration issues and for this reason
1322it is disabled by default.
1323
1324.. _setting-rng:
1325
1326``rng``
1327-------
1328
1329- String
1330- Default: auto
1331
1332Specify which random number generator to use. Permissible choises are:
1333
1334- auto - choose automatically
1335- sodium - Use libsodium ``randombytes_uniform``
1336- openssl - Use libcrypto ``RAND_bytes``
1337- getrandom - Use libc getrandom, falls back to urandom if it does not really work
1338- arc4random - Use BSD ``arc4random_uniform``
1339- urandom - Use ``/dev/urandom``
1340- kiss - Use simple settable deterministic RNG. **FOR TESTING PURPOSES ONLY!**
1341
1342.. note::
1343 Not all choises are available on all systems.
1344
1345.. _setting-security-poll-suffix:
1346
1347``security-poll-suffix``
1348------------------------
1349
1350- String
1351- Default: secpoll.powerdns.com.
1352
1353Domain name from which to query security update notifications. Setting
1354this to an empty string disables secpoll.
1355
ac340505
KD
1356.. _setting-send-signed-notify:
1357
1358``send-signed-notify``
15d44156 1359----------------------
ac340505
KD
1360
1361- Boolean
1362- Default: yes
1363
1364If yes, outgoing NOTIFYs will be signed if a TSIG key is configured for the zone.
1365If there are multiple TSIG keys configured for a domain, PowerDNS will use the
1366first one retrieved from the backend, which may not be the correct one for the
f3a29133 1367respective slave. Hence, in setups with multiple slaves with different TSIG keys
ac340505
KD
1368it may be required to send NOTIFYs unsigned.
1369
43f61934
GD
1370.. _setting-server-id:
1371
1372``server-id``
1373-------------
1374
1375- String
1376- Default: The hostname of the server
1377
1378This is the server ID that will be returned on an EDNS NSID query.
1379
0e2063c3
PL
1380.. _setting-setgid:
1381
1382``setgid``
1383----------
1384
1385- String
1386
1387If set, change group id to this gid for more security. See :doc:`security`.
1388
1389.. _setting-setuid:
1390
1391``setuid``
1392----------
1393
1394- String
1395
1396If set, change user id to this uid for more security. See :doc:`security`.
1397
43f61934
GD
1398.. _setting-signing-threads:
1399
1400``signing-threads``
1401-------------------
1402
1403- Integer
1404- Default: 3
1405
1406Tell PowerDNS how many threads to use for signing. It might help improve
1407signing speed by changing this number.
1408
0e2063c3
PL
1409.. _setting-slave:
1410
1411``slave``
1412---------
1413
1414- Boolean
1415- Default: no
1416
1417Turn on slave support. See :ref:`slave-operation`.
1418
1419.. _setting-slave-cycle-interval:
1420
1421``slave-cycle-interval``
1422------------------------
1423
1424- Integer
9346d84f 1425- Default: 60
0e2063c3 1426
81b050b3 1427On a master, this is the amount of seconds between the master checking
0e2063c3
PL
1428the SOA serials in its database to determine to send out NOTIFYs to the
1429slaves. On slaves, this is the number of seconds between the slave
1430checking for updates to zones.
1431
1432.. _setting-slave-renotify:
1433
1434``slave-renotify``
1435------------------
1436
1437- Boolean
1438- Default: no
1439
1440This setting will make PowerDNS renotify the slaves after an AXFR is
1441*received* from a master. This is useful when using when running a
1442signing-slave.
1443
7b4e8eed
MH
1444See :ref:`metadata-slave-renotify` to set this per-zone.
1445
0e2063c3
PL
1446.. _setting-soa-expire-default:
1447
1448``soa-expire-default``
1449----------------------
1450
1451- Integer
1452- Default: 604800
1453
d57f0fa6
KM
1454.. deprecated:: 4.2.0
1455 This setting has been deprecated and will be removed in 4.3.0
1456
0e2063c3
PL
1457Default :ref:`types-soa` expire.
1458
1459.. _setting-soa-minimum-ttl:
1460
1461``soa-minimum-ttl``
1462-------------------
1463
1464- Integer
1465- Default: 3600
1466
d57f0fa6
KM
1467.. deprecated:: 4.2.0
1468 This setting has been deprecated and will be removed in 4.3.0
1469
0e2063c3
PL
1470Default :ref:`types-soa` minimum ttl.
1471
1472.. _setting-soa-refresh-default:
1473
1474``soa-refresh-default``
1475-----------------------
1476
1477- Integer
1478- Default: 10800
1479
d57f0fa6
KM
1480.. deprecated:: 4.2.0
1481 This setting has been deprecated and will be removed in 4.3.0
1482
0e2063c3
PL
1483Default :ref:`types-soa` refresh.
1484
1485.. _setting-soa-retry-default:
1486
1487``soa-retry-default``
1488---------------------
1489
1490- Integer
1491- Default: 3600
1492
d57f0fa6
KM
1493.. deprecated:: 4.2.0
1494 This setting has been deprecated and will be removed in 4.3.0
1495
0e2063c3
PL
1496Default :ref:`types-soa` retry.
1497
1498.. _setting-socket-dir:
1499
1500``socket-dir``
1501--------------
1502
1503- Path
1504
1505Where the controlsocket will live. The default depends on
1506``LOCALSTATEDIR`` during compile-time (usually ``/var/run`` or
1507``/run``). See :ref:`control-socket`.
1508
1509This path will also contain the pidfile for this instance of PowerDNS
1510called ``pdns.pid`` by default. See :ref:`setting-config-name`
1511and :doc:`Virtual Hosting <guides/virtual-instances>` how this can differ.
1512
d3dfd71e 1513.. _setting-superslave:
b8013977 1514
d3dfd71e 1515``superslave``
d4033dc3 1516---------------
b8013977
KM
1517
1518- Boolean
1519- Default: no
1520
3fc2896d
PD
1521.. versionadded:: 4.1.9
1522 In versions before 4.1.9, this setting did not exist and supermaster support
985a932c 1523 was enabled by default.
b8013977 1524
3fc2896d
PD
1525.. versionchanged:: 4.2.0
1526 Before 4.2.0, the default was yes.
1527
d4033dc3 1528Turn on supermaster support. See :ref:`supermaster-operation`.
b8013977 1529
0e2063c3
PL
1530.. _setting-tcp-control-address:
1531
1532``tcp-control-address``
1533-----------------------
1534
1535- IP Address
1536
1537Address to bind to for TCP control.
1538
1539.. _setting-tcp-control-port:
1540
1541``tcp-control-port``
1542--------------------
1543
1544- Integer
1545- Default: 53000
1546
1547Port to bind to for TCP control.
1548
1549.. _setting-tcp-control-range:
1550
1551``tcp-control-range``
1552---------------------
1553
1554- IP Ranges, separated by commas or whitespace
1555
1556Limit TCP control to a specific client range.
1557
1558.. _setting-tcp-control-secret:
1559
1560``tcp-control-secret``
1561----------------------
1562
1563- String
1564
1565Password for TCP control.
1566
1567.. _setting-tcp-fast-open:
1568
1569``tcp-fast-open``
1570-----------------
1571
1572- Integer
1573- Default: 0 (Disabled)
1574
1575.. versionadded:: 4.1.0
1576
1577Enable TCP Fast Open support, if available, on the listening sockets.
1578The numerical value supplied is used as the queue size, 0 meaning
1579disabled.
1580
1581.. _setting-tcp-idle-timeout:
1582
1583``tcp-idle-timeout``
1584--------------------
1585
1586- Integer
1587- Default: 5
1588
1589Maximum time in seconds that a TCP DNS connection is allowed to stay
1590open while being idle, meaning without PowerDNS receiving or sending
1591even a single byte.
1592
1593.. _setting-traceback-handler:
1594
1595``traceback-handler``
1596---------------------
1597
1598- Boolean
1599- Default: yes
1600
1601Enable the Linux-only traceback handler.
1602
1603.. _setting-trusted-notification-proxy:
1604
1605``trusted-notification-proxy``
1606------------------------------
1607
1608- String
1609
1610IP address of incoming notification proxy
1611
1612.. _setting-udp-truncation-threshold:
1613
1614``udp-truncation-threshold``
1615----------------------------
473c9aa3
PL
1616.. versionchanged:: 4.2.0
1617 Before 4.2.0, the default was 1680
0e2063c3
PL
1618
1619- Integer
e77145bb 1620- Default: 1232
0e2063c3
PL
1621
1622EDNS0 allows for large UDP response datagrams, which can potentially
1623raise performance. Large responses however also have downsides in terms
e77145bb 1624of reflection attacks. Maximum value is 65535, but values above
0e2063c3
PL
16254096 should probably not be attempted.
1626
e77145bb
PL
1627.. note:: Why 1232?
1628
1629 1232 is the largest number of payload bytes that can fit in the smallest IPv6 packet.
6c90a075 1630 IPv6 has a minimum MTU of 1280 bytes (:rfc:`RFC 8200, section 5 <8200#section-5>`), minus 40 bytes for the IPv6 header, minus 8 bytes for the UDP header gives 1232, the maximum payload size for the DNS response.
e77145bb 1631
0e2063c3
PL
1632.. _setting-version-string:
1633
1634``version-string``
1635------------------
1636
1637- Any of: ``anonymous``, ``powerdns``, ``full``, String
1638- Default: full
1639
1640When queried for its version over DNS
1641(``dig chaos txt version.bind @pdns.ip.address``), PowerDNS normally
1642responds truthfully. With this setting you can overrule what will be
1643returned. Set the ``version-string`` to ``full`` to get the default
1644behaviour, to ``powerdns`` to just make it state
620e780a 1645``Served by PowerDNS - https://www.powerdns.com/``. The ``anonymous``
0e2063c3
PL
1646setting will return a ServFail, much like Microsoft nameservers do. You
1647can set this response to a custom value as well.
1648
1649.. _setting-webserver:
1650
1651``webserver``
1652-------------
1653
1654- Boolean
1655- Default: no
1656
1657Start a webserver for monitoring. See :doc:`performance`".
1658
1659.. versionchanged:: 4.1.0
1660 It was necessary to enable the webserver to use the REST API, this is no longer the case.
1661
1662.. _setting-webserver-address:
1663
1664``webserver-address``
1665---------------------
1666
1667- IP Address
1668- Default: 127.0.0.1
1669
1670IP Address for webserver/API to listen on.
1671
1672.. _setting-webserver-allow-from:
1673
1674``webserver-allow-from``
1675------------------------
1676
1677- IP ranges, separated by commas or whitespace
be3e1477
RG
1678- Default: 127.0.0.1,::1
1679
1680.. versionchanged:: 4.1.0
1681
d1594faf 1682 Default is now 127.0.0.1,::1, was 0.0.0.0/0,::/0 before.
0e2063c3
PL
1683
1684Webserver/API access is only allowed from these subnets.
1685
64c08e25
PL
1686.. _setting-webserver-loglevel:
1687
1688``webserver-loglevel``
1689----------------------
1690.. versionadded:: 4.2.0
1691
1692- String, one of "none", "normal", "detailed"
1693
1694The amount of logging the webserver must do. "none" means no useful webserver information will be logged.
1695When set to "normal", the webserver will log a line per request that should be familiar::
1696
a0badc0b 1697 [webserver] e235780e-a5cf-415e-9326-9d33383e739e 127.0.0.1:55376 "GET /api/v1/servers/localhost/bla HTTP/1.1" 404 196
64c08e25
PL
1698
1699When set to "detailed", all information about the request and response are logged::
1700
a0badc0b
PL
1701 [webserver] e235780e-a5cf-415e-9326-9d33383e739e Request Details:
1702 [webserver] e235780e-a5cf-415e-9326-9d33383e739e Headers:
1703 [webserver] e235780e-a5cf-415e-9326-9d33383e739e accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
1704 [webserver] e235780e-a5cf-415e-9326-9d33383e739e accept-encoding: gzip, deflate
1705 [webserver] e235780e-a5cf-415e-9326-9d33383e739e accept-language: en-US,en;q=0.5
1706 [webserver] e235780e-a5cf-415e-9326-9d33383e739e connection: keep-alive
1707 [webserver] e235780e-a5cf-415e-9326-9d33383e739e dnt: 1
1708 [webserver] e235780e-a5cf-415e-9326-9d33383e739e host: 127.0.0.1:8081
1709 [webserver] e235780e-a5cf-415e-9326-9d33383e739e upgrade-insecure-requests: 1
1710 [webserver] e235780e-a5cf-415e-9326-9d33383e739e user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0
1711 [webserver] e235780e-a5cf-415e-9326-9d33383e739e No body
1712 [webserver] e235780e-a5cf-415e-9326-9d33383e739e Response details:
1713 [webserver] e235780e-a5cf-415e-9326-9d33383e739e Headers:
1714 [webserver] e235780e-a5cf-415e-9326-9d33383e739e Connection: close
1715 [webserver] e235780e-a5cf-415e-9326-9d33383e739e Content-Length: 49
1716 [webserver] e235780e-a5cf-415e-9326-9d33383e739e Content-Type: text/html; charset=utf-8
1717 [webserver] e235780e-a5cf-415e-9326-9d33383e739e Server: PowerDNS/0.0.15896.0.gaba8bab3ab
1718 [webserver] e235780e-a5cf-415e-9326-9d33383e739e Full body:
1719 [webserver] e235780e-a5cf-415e-9326-9d33383e739e <!html><title>Not Found</title><h1>Not Found</h1>
1720 [webserver] e235780e-a5cf-415e-9326-9d33383e739e 127.0.0.1:55376 "GET /api/v1/servers/localhost/bla HTTP/1.1" 404 196
64c08e25
PL
1721
1722The value between the hooks is a UUID that is generated for each request. This can be used to find all lines related to a single request.
1723
1724.. note::
0b9ef9e0 1725 The webserver logs these line on the NOTICE level. The :ref:`setting-loglevel` seting must be 5 or higher for these lines to end up in the log.
64c08e25 1726
ca609038
PD
1727.. _setting-webserver-max-bodysize:
1728
1729``webserver-max-bodysize``
1730--------------------------
1731.. versionadded:: 4.2.0
1732
1733- Integer
1734- Default: 2
1735
1736Maximum request/response body size in megabytes.
1737
0e2063c3
PL
1738.. _setting-webserver-password:
1739
1740``webserver-password``
1741----------------------
1742
1743- String
1744
1745The plaintext password required for accessing the webserver.
1746
1747.. _setting-webserver-port:
1748
1749``webserver-port``
1750------------------
1751
1752- Integer
8c9cb460 1753- Default: 8081
0e2063c3
PL
1754
1755The port where webserver/API will listen on.
1756
1757.. _setting-webserver-print-arguments:
1758
1759``webserver-print-arguments``
1760-----------------------------
1761
1762- Boolean
1763- Default: no
1764
fd47d762 1765If the webserver should print arguments.
0e2063c3
PL
1766
1767.. _setting-write-pid:
1768
1769``write-pid``
1770-------------
1771
1772- Boolean
1773- Default: yes
1774
1775If a PID file should be written.
1776
1777.. _setting-xfr-max-received-mbytes:
1778
1779``xfr-max-received-mbytes``
1780---------------------------
1781
1782- Integer
1783- Default: 100
1784
1785Specifies the maximum number of received megabytes allowed on an
1786incoming AXFR/IXFR update, to prevent resource exhaustion. A value of 0
1787means no restriction.