From 4b5af4467dc0b633d39dea1218dec6e08a89df36 Mon Sep 17 00:00:00 2001 From: sujiba <65259334+sujiba@users.noreply.github.com> Date: Thu, 4 May 2023 01:33:02 +0200 Subject: [PATCH] generate root.key --- docker-build/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-build/Dockerfile b/docker-build/Dockerfile index 610de65..f4e32a4 100644 --- a/docker-build/Dockerfile +++ b/docker-build/Dockerfile @@ -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.*