bind: add default rndc.conf

This commit is contained in:
Tobias Poschwatta 2022-06-03 14:40:13 +02:00
parent 442db9429b
commit 53c3bec163

View File

@ -67,6 +67,15 @@ stdenv.mkDerivation rec {
for f in "$lib/lib/"*.la "$dev/bin/"bind*-config; do
sed -i "$f" -e 's|-L${openssl.dev}|-L${lib.getLib openssl}|g'
done
cat <<EOF >$out/etc/rndc.conf
include "/etc/bind/rndc.key";
options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
EOF
'';
doCheck = false; # requires root and the net