This also automatically reloads them each 24 hours by default.
--- /dev/null
+-- readTrustAnchorsFromFile reads the DNSSEC trust anchors from the provided file
+-- and reloads it every 24 hours.
+readTrustAnchorsFromFile("/usr/share/dns/root.key")
--- /dev/null
+etc/powerdns/recursor.d
--- /dev/null
+-- Debian default Lua configuration file for PowerDNS Recursor
+
+-- Load DNSSEC root keys from dns-root-data package.
+-- Note: If you provide your own Lua configuration file, consider
+-- running rootkeys.lua too.
+dofile("/usr/share/pdns-recursor/lua-config/rootkeys.lua")
+
override_dh_auto_install:
dh_auto_install
+ install -d debian/pdns-recursor/usr/share/pdns-recursor/lua-config
+ install -m 644 -t debian/pdns-recursor/usr/share/pdns-recursor/lua-config debian/lua-config/rootkeys.lua
+ install -m 644 -t debian/pdns-recursor/etc/powerdns debian/recursor.lua
rm -f debian/pdns-recursor/etc/powerdns/recursor.conf-dist
./pdns_recursor --no-config --config | sed \
-e 's!# config-dir=.*!config-dir=/etc/powerdns!' \
+ -e 's!# include-dir=.*!&\ninclude-dir=/etc/powerdns/recursor.d!' \
-e 's!# local-address=.*!local-address=127.0.0.1!' \
+ -e 's!# lua-config-file=.*!lua-config-file=/etc/powerdns/recursor.lua!' \
-e 's!# quiet=.*!quiet=yes!' \
-e 's!# setgid=.*!setgid=pdns!' \
-e 's!# setuid=.*!setuid=pdns!' \
override_dh_fixperms:
dh_fixperms
- # these files often contain passwords. 640 as it is chowned to root:pdns
+# these files often contain passwords. 640 as it is chowned to root:pdns
chmod 0640 debian/pdns-recursor/etc/powerdns/recursor.conf
--- /dev/null
+-- readTrustAnchorsFromFile reads the DNSSEC trust anchors from the provided file
+-- and reloads it every 24 hours.
+readTrustAnchorsFromFile("/usr/share/dns/root.key")
--- /dev/null
+etc/powerdns/recursor.d
--- /dev/null
+-- Debian default Lua configuration file for PowerDNS Recursor
+
+-- Load DNSSEC root keys from dns-root-data package.
+-- Note: If you provide your own Lua configuration file, consider
+-- running rootkeys.lua too.
+dofile("/usr/share/pdns-recursor/lua-config/rootkeys.lua")
+
override_dh_auto_install:
dh_auto_install -- STRIP_BINARIES=0
+ install -d debian/pdns-recursor/usr/share/pdns-recursor/lua-config
+ install -m 644 -t debian/pdns-recursor/usr/share/pdns-recursor/lua-config debian/lua-config/rootkeys.lua
+ install -m 644 -t debian/pdns-recursor/etc/powerdns debian/recursor.lua
rm -f debian/tmp/etc/powerdns/recursor.conf-dist
./pdns_recursor --no-config --config | sed \
-e 's!# config-dir=.*!config-dir=/etc/powerdns!' \
+ -e 's!# include-dir=.*!&\ninclude-dir=/etc/powerdns/recursor.d!' \
-e 's!# local-address=.*!local-address=127.0.0.1!' \
+ -e 's!# lua-config-file=.*!lua-config-file=/etc/powerdns/recursor.lua!' \
-e 's!# quiet=.*!quiet=yes!' \
-e 's!# setgid=.*!setgid=pdns!' \
-e 's!# setuid=.*!setuid=pdns!' \
override_dh_fixperms:
dh_fixperms
- # these files often contain passwords. 640 as it is chowned to root:pdns
+# these files often contain passwords. 640 as it is chowned to root:pdns
chmod 0640 debian/tmp/etc/powerdns/recursor.conf
--- /dev/null
+-- readTrustAnchorsFromFile reads the DNSSEC trust anchors from the provided file
+-- and reloads it every 24 hours.
+readTrustAnchorsFromFile("/usr/share/dns/root.key")
--- /dev/null
+etc/powerdns/recursor.d
--- /dev/null
+-- Debian default Lua configuration file for PowerDNS Recursor
+
+-- Load DNSSEC root keys from dns-root-data package.
+-- Note: If you provide your own Lua configuration file, consider
+-- running rootkeys.lua too.
+dofile("/usr/share/pdns-recursor/lua-config/rootkeys.lua")
+
override_dh_auto_install:
dh_auto_install
+ install -d debian/pdns-recursor/usr/share/pdns-recursor/lua-config
+ install -m 644 -t debian/pdns-recursor/usr/share/pdns-recursor/lua-config debian/lua-config/rootkeys.lua
+ install -m 644 -t debian/pdns-recursor/etc/powerdns debian/recursor.lua
rm -f debian/pdns-recursor/etc/powerdns/recursor.conf-dist
./pdns_recursor --no-config --config | sed \
-e 's!# config-dir=.*!config-dir=/etc/powerdns!' \
+ -e 's!# include-dir=.*!&\ninclude-dir=/etc/powerdns/recursor.d!' \
-e 's!# local-address=.*!local-address=127.0.0.1!' \
+ -e 's!# lua-config-file=.*!lua-config-file=/etc/powerdns/recursor.lua!' \
-e 's!# quiet=.*!quiet=yes!' \
-e 's!# setgid=.*!setgid=pdns!' \
-e 's!# setuid=.*!setuid=pdns!' \
override_dh_fixperms:
dh_fixperms
- # these files often contain passwords. 640 as it is chowned to root:pdns
+# these files often contain passwords. 640 as it is chowned to root:pdns
chmod 0640 debian/pdns-recursor/etc/powerdns/recursor.conf