diff options
author | Peter van Dijk <peter.van.dijk@powerdns.com> | 2022-01-25 14:36:58 +0100 |
---|---|---|
committer | alice <alice@ayaya.dev> | 2022-01-25 21:48:58 +0000 |
commit | 0e706566819ed2290c656816423704fca713d3cd (patch) | |
tree | 16917b04388efad5998e2314bd2e59ad96105c4a | |
parent | 4dd80f8d0448abb74134f07b8e82c55e9fe63bd2 (diff) | |
download | aports-0e706566819ed2290c656816423704fca713d3cd.tar.gz aports-0e706566819ed2290c656816423704fca713d3cd.tar.bz2 aports-0e706566819ed2290c656816423704fca713d3cd.tar.xz |
community/pdns: upgrade to 4.6.0
and updated pdns.conf to match 4.6.0, and have the Alpine-specific defaults at the bottom
-rw-r--r-- | community/pdns/APKBUILD | 12 | ||||
-rw-r--r-- | community/pdns/pdns.conf | 556 |
2 files changed, 469 insertions, 99 deletions
diff --git a/community/pdns/APKBUILD b/community/pdns/APKBUILD index b014c4abe2..ab648550ec 100644 --- a/community/pdns/APKBUILD +++ b/community/pdns/APKBUILD @@ -6,8 +6,8 @@ # Contributor: Fabian Zoske <fabian@zoske.it> # Maintainer: Peter van Dijk <peter.van.dijk@powerdns.com> pkgname=pdns -pkgver=4.5.2 -pkgrel=2 +pkgver=4.6.0 +pkgrel=0 pkgdesc="PowerDNS Authoritative Server" url="https://www.powerdns.com/" # s390x blocked by failing testsuite @@ -30,7 +30,6 @@ subpackages="$pkgname-doc $pkgname-openrc $pkgname-tools $pkgname-backend-odbc:backend_odbc $pkgname-backend-pipe:backend_pipe $pkgname-backend-pgsql:backend_pgsql - $pkgname-backend-random:backend_random $pkgname-backend-remote:backend_remote $pkgname-backend-sqlite3:backend_sqlite3" pkgusers="pdns" @@ -66,7 +65,7 @@ build() { --localstatedir=/var \ --libdir="/usr/lib/$pkgname" \ --with-modules="" \ - --with-dynmodules="bind geoip ldap lua2 gmysql godbc pipe gpgsql random remote gsqlite3" \ + --with-dynmodules="bind geoip ldap lua2 gmysql godbc pipe gpgsql remote gsqlite3" \ --enable-tools \ --enable-unit-tests \ --disable-static \ @@ -141,7 +140,6 @@ backend_mysql() { _mv_backend gmysql mariadb-client; } backend_odbc() { _mv_backend godbc unixodbc; } backend_pipe() { _mv_backend pipe; } backend_pgsql() { _mv_backend gpgsql postgresql-client; } -backend_random() { _mv_backend random; } backend_remote() { _mv_backend remote; } backend_sqlite3() { _mv_backend gsqlite3 sqlite; } #backend_tinydns() { _mv_backend tinydns; } @@ -155,7 +153,7 @@ backend_pgsql() { } sha512sums=" -0a183d8c0bb517799afa0f9382e3c06ad3c6e9c871b7912073a860364ca97dc121be2372080100677db10601c8ef96ad56b10787c02a9a9ede82f8a1cc904c6e pdns-4.5.2.tar.bz2 +bbe64ad01fed0ea93cec90d47b2fe71228b9298999f14456dd4b5617929c0e370b5b7cb568deeb17cbf3fd42873bb8c986e655ddda8c7b93b4591361ddef2397 pdns-4.6.0.tar.bz2 3a55547e1b6407e7d2faa6e02982ed903c2364381af1b7eeb626ae3a8b0e32558dd79bf31c982b134414e5636d4868c1f3660ac523f25d2440ed6f7b436843bf pdns.initd -3f809f3257680c3e496fa6a4c86c8a636db5d9d5b92aef96fe54c29b8266ee590deb792d13205cc171e27307fa73295dd3b101b09102fd66a2393a7cdbf9dd27 pdns.conf +349c2ddf7f6242cfef80894ca1d249b709bad5d8b2cd3ef2988935805a76d4aa87053826f2b6af21eaa358532eee7c6f2398589d57498e5e82f13f9a5cbcc3cd pdns.conf " diff --git a/community/pdns/pdns.conf b/community/pdns/pdns.conf index 98c3a8dccb..2c8199a8c5 100644 --- a/community/pdns/pdns.conf +++ b/community/pdns/pdns.conf @@ -1,33 +1,119 @@ # Autogenerated configuration file template + +################################# +# ignore-unknown-settings Configuration settings to ignore if they are unknown +# +# ignore-unknown-settings= + +################################# +# 8bit-dns Allow 8bit dns queries +# +# 8bit-dns=no + ################################# # allow-axfr-ips Allow zonetransfers only to these subnets # -# allow-axfr-ips=0.0.0.0/0 +# allow-axfr-ips=127.0.0.0/8,::1 + +################################# +# allow-dnsupdate-from A global setting to allow DNS updates from these IP ranges. +# +# allow-dnsupdate-from=127.0.0.0/8,::1 + +################################# +# allow-notify-from Allow AXFR NOTIFY from these IP ranges. If empty, drop all incoming notifies. +# +# allow-notify-from=0.0.0.0/0,::/0 + +################################# +# allow-unsigned-autoprimary Allow autoprimaries to create zones without TSIG signed NOTIFY +# +# allow-unsigned-autoprimary=yes + +################################# +# allow-unsigned-notify Allow unsigned notifications for TSIG secured zones +# +# allow-unsigned-notify=yes + +################################# +# allow-unsigned-supermaster Allow supermasters to create zones without TSIG signed NOTIFY +# +# allow-unsigned-supermaster=yes + +################################# +# also-notify When notifying a zone, also notify these nameservers +# +# also-notify= + +################################# +# any-to-tcp Answer ANY queries with tc=1, shunting to TCP +# +# any-to-tcp=yes + +################################# +# api Enable/disable the REST API (including HTTP listener) +# +# api=no + +################################# +# api-key Static pre-shared authentication key for access to the REST API +# +# api-key= + +################################# +# autosecondary Act as an autosecondary (formerly superslave) +# +# autosecondary=no ################################# -# allow-recursion List of subnets that are allowed to recurse +# axfr-fetch-timeout Maximum time in seconds for inbound AXFR to start or be idle after starting # -# allow-recursion=0.0.0.0/0 +# axfr-fetch-timeout=10 ################################# -# allow-recursion-override Set this so that local data fully overrides the recursor +# axfr-lower-serial Also AXFR a zone from a master with a lower serial # -# allow-recursion-override=no +# axfr-lower-serial=no ################################# # cache-ttl Seconds to store packets in the PacketCache # -cache-ttl=60 +# cache-ttl=20 + +################################# +# carbon-instance If set overwrites the instance name default +# +# carbon-instance=auth + +################################# +# carbon-interval Number of seconds between carbon (graphite) updates +# +# carbon-interval=30 + +################################# +# carbon-namespace If set overwrites the first part of the carbon string +# +# carbon-namespace=pdns + +################################# +# carbon-ourname If set, overrides our reported hostname for carbon stats +# +# carbon-ourname= + +################################# +# carbon-server If set, send metrics in carbon (graphite) format to this server IP address +# +# carbon-server= ################################# # chroot If set, chroot to this directory for more security # -chroot=/var/empty +# chroot= ################################# # config-dir Location of configuration directory (pdns.conf) # -config-dir=/etc/pdns +# config-dir=/etc/pdns ################################# # config-name Name of this virtual configuration - will rename the binary image @@ -35,6 +121,11 @@ config-dir=/etc/pdns # config-name= ################################# +# consistent-backends Assume individual zones are not divided over backends. Send only ANY lookup operations to the backend to reduce the number of lookups +# +# consistent-backends=yes + +################################# # control-console Debugging switch - don't use # # control-console=no @@ -42,12 +133,47 @@ config-dir=/etc/pdns ################################# # daemon Operate as a daemon # -daemon=yes +# daemon=no + +################################# +# default-api-rectify Default API-RECTIFY value for zones +# +# default-api-rectify=yes ################################# -# default-soa-name name to insert in the SOA record if none set in the backend +# default-ksk-algorithm Default KSK algorithm # -# default-soa-name=a.misconfigured.powerdns.server +# default-ksk-algorithm=ecdsa256 + +################################# +# default-ksk-size Default KSK size (0 means default) +# +# default-ksk-size=0 + +################################# +# default-publish-cdnskey Default value for PUBLISH-CDNSKEY +# +# default-publish-cdnskey= + +################################# +# default-publish-cds Default value for PUBLISH-CDS +# +# default-publish-cds= + +################################# +# default-soa-content Default SOA content +# +# default-soa-content=a.misconfigured.dns.server.invalid hostmaster.@ 0 10800 3600 604800 3600 + +################################# +# default-soa-edit Default SOA-EDIT value +# +# default-soa-edit= + +################################# +# default-soa-edit-signed Default SOA-EDIT value for signed zones +# +# default-soa-edit-signed= ################################# # default-ttl Seconds a result is valid if not set otherwise @@ -55,44 +181,109 @@ daemon=yes # default-ttl=3600 ################################# +# default-zsk-algorithm Default ZSK algorithm +# +# default-zsk-algorithm= + +################################# +# default-zsk-size Default ZSK size (0 means default) +# +# default-zsk-size=0 + +################################# +# direct-dnskey Fetch DNSKEY, CDS and CDNSKEY RRs from backend during DNSKEY or CDS/CDNSKEY synthesis +# +# direct-dnskey=no + +################################# # disable-axfr Disable zonetransfers but do allow TCP queries # # disable-axfr=no ################################# -# disable-tcp Do not listen to TCP queries +# disable-axfr-rectify Disable the rectify step during an outgoing AXFR. Only required for regression testing. +# +# disable-axfr-rectify=no + +################################# +# disable-syslog Disable logging to syslog, useful when running inside a supervisor that logs stdout # -# disable-tcp=no +# disable-syslog=no ################################# # distributor-threads Default number of Distributor (backend) threads to start # -distributor-threads=1 +# distributor-threads=3 + +################################# +# dname-processing If we should support DNAME records +# +# dname-processing=no ################################# -# do-ipv6-additional-processing Do AAAA additional processing +# dnssec-key-cache-ttl Seconds to cache DNSSEC keys from the database # -# do-ipv6-additional-processing=no +# dnssec-key-cache-ttl=30 ################################# -# fancy-records Process URL and MBOXFW records +# dnsupdate Enable/Disable DNS update (RFC2136) support. Default is no. # -# fancy-records=no +# dnsupdate=no + +################################# +# domain-metadata-cache-ttl Seconds to cache zone metadata from the database +# +# domain-metadata-cache-ttl= + +################################# +# edns-cookie-secret When set, set a server cookie when responding to a query with a Client cookie (in hex) +# +# edns-cookie-secret= + +################################# +# edns-subnet-processing If we should act on EDNS Subnet options +# +# edns-subnet-processing=no + +################################# +# enable-lua-records Process LUA records for all zones (metadata overrides this) +# +# enable-lua-records=no + +################################# +# entropy-source If set, read entropy from this file +# +# entropy-source=/dev/urandom + +################################# +# expand-alias Expand ALIAS records +# +# expand-alias=no + +################################# +# forward-dnsupdate A global setting to allow DNS update packages that are for a Slave zone, to be forwarded to the master. +# +# forward-dnsupdate=yes + +################################# +# forward-notify IP addresses to forward received notifications to regardless of master or slave settings +# +# forward-notify= ################################# # guardian Run within a guardian process # -guardian=yes +# guardian=no ################################# -# launch Which backends to launch and order to query them in +# include-dir Include *.conf files from this directory # -# launch= +# include-dir= ################################# -# lazy-recursion Only recurse if question cannot be answered locally +# launch Which backends to launch and order to query them in # -# lazy-recursion=yes +# launch= ################################# # load-modules Load this module - supply absolute or relative path @@ -102,32 +293,32 @@ guardian=yes ################################# # local-address Local IP addresses to which we bind # -# local-address=0.0.0.0 +# local-address=0.0.0.0, :: ################################# -# local-ipv6 Local IP address to which we bind +# local-address-nonexist-fail Fail to start if one or more of the local-address's do not exist on this server # -# local-ipv6= +# local-address-nonexist-fail=yes ################################# # local-port The port on which we listen # -local-port=53 +# local-port=53 ################################# # log-dns-details If PDNS should log DNS non-erroneous details # -# log-dns-details= +# log-dns-details=no ################################# -# log-failed-updates If PDNS should log failed update requests +# log-dns-queries If PDNS should log all incoming DNS queries # -# log-failed-updates= +# log-dns-queries=no ################################# -# logfile Logfile to use (Windows only) +# log-timestamp Print timestamps in log lines # -# logfile=pdns.log +# log-timestamp=yes ################################# # logging-facility Log under a specific facility @@ -137,32 +328,112 @@ local-port=53 ################################# # loglevel Amount of logging. Higher is more. Do not set below 3 # -loglevel=3 +# loglevel=4 + +################################# +# lua-axfr-script Script to be used to edit incoming AXFRs +# +# lua-axfr-script= + +################################# +# lua-dnsupdate-policy-script Lua script with DNS update policy handler +# +# lua-dnsupdate-policy-script= + +################################# +# lua-health-checks-expire-delay Stops doing health checks after the record hasn't been used for that delay (in seconds) +# +# lua-health-checks-expire-delay=3600 + +################################# +# lua-health-checks-interval LUA records health checks monitoring interval in seconds +# +# lua-health-checks-interval=5 ################################# -# master Act as a master +# lua-prequery-script Lua script with prequery handler (DO NOT USE) +# +# lua-prequery-script= + +################################# +# lua-records-exec-limit LUA records scripts execution limit (instructions count). Values <= 0 mean no limit +# +# lua-records-exec-limit=1000 + +################################# +# master Act as a primary # # master=no ################################# +# max-cache-entries Maximum number of entries in the query cache +# +# max-cache-entries=1000000 + +################################# +# max-ent-entries Maximum number of empty non-terminals in a zone +# +# max-ent-entries=100000 + +################################# +# max-generate-steps Maximum number of $GENERATE steps when loading a zone from a file +# +# max-generate-steps=0 + +################################# +# max-include-depth Maximum number of nested $INCLUDE directives while processing a zone file +# +# max-include-depth=20 + +################################# +# max-nsec3-iterations Limit the number of NSEC3 hash iterations +# +# max-nsec3-iterations=100 + +################################# +# max-packet-cache-entries Maximum number of entries in the packet cache +# +# max-packet-cache-entries=1000000 + +################################# # max-queue-length Maximum queuelength before considering situation lost # # max-queue-length=5000 ################################# +# max-signature-cache-entries Maximum number of signatures cache entries +# +# max-signature-cache-entries= + +################################# +# max-tcp-connection-duration Maximum time in seconds that a TCP DNS connection is allowed to stay open. +# +# max-tcp-connection-duration=0 + +################################# # max-tcp-connections Maximum number of TCP connections # -# max-tcp-connections=10 +# max-tcp-connections=20 + +################################# +# max-tcp-connections-per-client Maximum number of simultaneous TCP connections per client +# +# max-tcp-connections-per-client=0 + +################################# +# max-tcp-transactions-per-conn Maximum number of subsequent queries per TCP connection +# +# max-tcp-transactions-per-conn=0 ################################# # module-dir Default directory for modules # -module-dir=/usr/lib/pdns/pdns +# module-dir=/usr/lib/pdns/pdns ################################# -# negquery-cache-ttl Seconds to store packets in the PacketCache +# negquery-cache-ttl Seconds to store negative query results in the QueryCache # -negquery-cache-ttl=60 +# negquery-cache-ttl=60 ################################# # no-shuffle Set this to prevent random shuffling of answers - for regression testing @@ -170,24 +441,54 @@ negquery-cache-ttl=60 # no-shuffle=off ################################# -# out-of-zone-additional-processing Do out of zone additional processing +# non-local-bind Enable binding to non-local addresses by using FREEBIND / BINDANY socket options +# +# non-local-bind=no + +################################# +# only-notify Only send AXFR NOTIFY to these IP addresses or netmasks +# +# only-notify=0.0.0.0/0,::/0 + +################################# +# outgoing-axfr-expand-alias Expand ALIAS records during outgoing AXFR +# +# outgoing-axfr-expand-alias=no + +################################# +# overload-queue-length Maximum queuelength moving to packetcache only +# +# overload-queue-length=0 + +################################# +# prevent-self-notification Don't send notifications to what we think is ourself +# +# prevent-self-notification=yes + +################################# +# primary Act as a primary # -# out-of-zone-additional-processing=yes +# primary=no ################################# -# pipebackend-abi-version Version of the pipe backend ABI +# proxy-protocol-from A Proxy Protocol header is only allowed from these subnets, and is mandatory then too. # -# pipebackend-abi-version=1 +# proxy-protocol-from= ################################# -# query-cache-ttl Seconds to store packets in the PacketCache +# proxy-protocol-maximum-size The maximum size of a proxy protocol payload, including the TLV values +# +# proxy-protocol-maximum-size=512 + +################################# +# query-cache-ttl Seconds to store query results in the QueryCache # # query-cache-ttl=20 ################################# -# query-local-address Source IP address for sending queries +# query-local-address Source IP addresses for sending queries # -# query-local-address= +# query-local-address=0.0.0.0 :: ################################# # query-logging Hint backends that queries should be logged @@ -200,84 +501,134 @@ negquery-cache-ttl=60 # queue-limit=1500 ################################# -# recursive-cache-ttl Seconds to store packets in the PacketCache +# receiver-threads Default number of receiver threads to start +# +# receiver-threads=1 + +################################# +# resolver Use this resolver for ALIAS and the internal stub resolver +# +# resolver=no + +################################# +# retrieval-threads Number of AXFR-retrieval threads for slave operation +# +# retrieval-threads=2 + +################################# +# reuseport Enable higher performance on compliant kernels by using SO_REUSEPORT allowing each receiver thread to open its own socket +# +# reuseport=no + +################################# +# rng Specify the random number generator to use. Valid values are auto,sodium,openssl,getrandom,arc4random,urandom. +# +# rng=auto + +################################# +# secondary Act as a secondary +# +# secondary=no + +################################# +# secondary-do-renotify If this secondary should send out notifications after receiving zone transfers from a primary # -# recursive-cache-ttl=10 +# secondary-do-renotify=no ################################# -# recursor If recursion is desired, IP address of a recursing nameserver +# security-poll-suffix Zone name from which to query security update notifications # -# recursor=no +# security-poll-suffix=secpoll.powerdns.com. ################################# -# send-root-referral Send out old-fashioned root-referral instead of ServFail in case of no authority +# send-signed-notify Send TSIG secured NOTIFY if TSIG key is configured for a zone # -# send-root-referral=no +# send-signed-notify=yes + +################################# +# server-id Returned when queried for 'id.server' TXT or NSID, defaults to hostname - disabled or custom +# +# server-id= ################################# # setgid If set, change group id to this gid for more security # -setgid=pdns +# setgid= ################################# # setuid If set, change user id to this uid for more security # -setuid=pdns +# setuid= ################################# -# skip-cname Do not perform CNAME indirection for each query +# signing-threads Default number of signer threads to start # -# skip-cname=no +# signing-threads=3 ################################# -# slave Act as a slave +# slave Act as a secondary # # slave=no ################################# -# slave-cycle-interval Reschedule failed SOA serial checks once every .. seconds +# slave-cycle-interval Schedule slave freshness checks once every .. seconds # # slave-cycle-interval=60 ################################# -# smtpredirector Our smtpredir MX host +# slave-renotify If we should send out notifications for secondaried updates # -# smtpredirector=a.misconfigured.powerdns.smtp.server +# slave-renotify=no ################################# -# soa-expire-default Default SOA expire +# socket-dir Where the controlsocket will live, /var/run/pdns when unset and not chrooted # -# soa-expire-default=604800 +# socket-dir= ################################# -# soa-minimum-ttl Default SOA mininum ttl +# superslave Act as a autosecondary # -# soa-minimum-ttl=3600 +# superslave=no ################################# -# soa-refresh-default Default SOA refresh +# svc-autohints Transparently fill ipv6hint=auto ipv4hint=auto SVC params with AAAA/A records for the target name of the record (if within the same zone) # -# soa-refresh-default=10800 +# svc-autohints=no ################################# -# soa-retry-default Default SOA retry +# tcp-control-address If set, PowerDNS can be controlled over TCP on this address # -# soa-retry-default=3600 +# tcp-control-address= ################################# -# soa-serial-offset Make sure that no SOA serial is less than this number +# tcp-control-port If set, PowerDNS can be controlled over TCP on this address # -# soa-serial-offset=0 +# tcp-control-port=53000 ################################# -# socket-dir Where the controlsocket will live +# tcp-control-range If set, remote control of PowerDNS is possible over these networks only # -socket-dir=/var/run +# 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 ################################# -# strict-rfc-axfrs Perform strictly rfc compliant axfrs (very slow) +# tcp-control-secret If set, PowerDNS can be controlled over TCP after passing this secret # -# strict-rfc-axfrs=no +# tcp-control-secret= + +################################# +# tcp-fast-open Enable TCP Fast Open support on the listening sockets, using the supplied numerical value as the queue size +# +# tcp-fast-open=0 + +################################# +# tcp-idle-timeout Maximum time in seconds that a TCP DNS connection is allowed to stay open while being idle +# +# tcp-idle-timeout=5 + +################################# +# traceback-handler Enable the traceback handler (Linux only) +# +# traceback-handler=yes ################################# # trusted-notification-proxy IP address of incoming notification proxy @@ -285,14 +636,14 @@ socket-dir=/var/run # trusted-notification-proxy= ################################# -# urlredirector Where we send hosts to that need to be url redirected +# udp-truncation-threshold Maximum UDP response size before we truncate # -# urlredirector=127.0.0.1 +# udp-truncation-threshold=1232 ################################# -# use-logfile Use a log file (Windows only) +# upgrade-unknown-types Transparently upgrade known TYPExxx records. Recommended to keep off, except for PowerDNS upgrades until data sources are cleaned up # -use-logfile=no +# upgrade-unknown-types=no ################################# # version-string PowerDNS version in packets - full, anonymous, powerdns or custom @@ -300,22 +651,42 @@ use-logfile=no # version-string=full ################################# -# webserver Start a webserver for monitoring +# webserver Start a webserver for monitoring (api=yes also enables the HTTP listener) # -webserver=no +# webserver=no ################################# -# webserver-address IP Address of webserver to listen on +# webserver-address IP Address of webserver/API to listen on # # webserver-address=127.0.0.1 ################################# +# webserver-allow-from Webserver/API access is only allowed from these subnets +# +# webserver-allow-from=127.0.0.1,::1 + +################################# +# webserver-hash-plaintext-credentials Whether to hash passwords and api keys supplied in plaintext, to prevent keeping the plaintext version in memory at runtime +# +# webserver-hash-plaintext-credentials=no + +################################# +# webserver-loglevel Amount of logging in the webserver (none, normal, detailed) +# +# webserver-loglevel=normal + +################################# +# webserver-max-bodysize Webserver/API maximum request/response body size in megabytes +# +# webserver-max-bodysize=2 + +################################# # webserver-password Password required for accessing the webserver # # webserver-password= ################################# -# webserver-port Port of webserver to listen on +# webserver-port Port of webserver/API to listen on # # webserver-port=8081 @@ -325,28 +696,29 @@ webserver=no # webserver-print-arguments=no ################################# -# wildcard-url Process URL and MBOXFW records +# write-pid Write a PID file # -# wildcard-url=no +# write-pid=yes ################################# -# wildcards Honor wildcards in the database +# xfr-cycle-interval Schedule primary/secondary SOA freshness checks once every .. seconds # -wildcards=yes +# xfr-cycle-interval=60 ################################# -# geoip-database-files Comma, tab or space separated list of files to open +# xfr-max-received-mbytes Maximum number of megabytes received from an incoming XFR # +# xfr-max-received-mbytes=100 ################################# -# geoip-database-cache Specifies the kind of caching that is done on the database +# zone-cache-refresh-interval Seconds to cache list of known zones # +# zone-cache-refresh-interval=300 ################################# -# geoip-zones-file Specifies the full path of the zone configuration file to use -# - -################################# -# geoip-dnssec-keydir Specifies the full path of a directory that will contain DNSSEC keys +# zone-metadata-cache-ttl Seconds to cache zone metadata from the database # +# zone-metadata-cache-ttl=60 +setuid=pdns +setgid=pdns
\ No newline at end of file |