1
0
Fork 0
mirror of https://github.com/sujiba/pihole-unbound-hyperlocal.git synced 2025-07-10 05:45:14 +02:00

generate root.key

This commit is contained in:
sujiba 2023-05-04 01:33:02 +02:00
parent f6b63afdc2
commit 4b5af4467d

View file

@ -14,10 +14,11 @@ RUN apt-get update && \
COPY unbound-v1.13.1_pihole.conf /etc/unbound/unbound.conf.d/pihole.conf
# Download the DNS-Root-Zone.
# Create the chroot directory.
# Create the chroot directory and generate root.key.
# Copy / move files and change owner.
RUN wget -O root.hints https://www.internic.net/domain/named.root && \
mkdir /usr/local/etc/unbound && \
unbound-anchor && \
cp /var/lib/unbound/root.key /usr/local/etc/unbound/root.key && \
mv root.hints /usr/local/etc/unbound/ && \
chown -R unbound:unbound /usr/local/etc/unbound/root.*