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

changed edns settings, added s6-ovleray for unbound, update to V2022.08.3

This commit is contained in:
sujiba 2023-05-04 01:33:02 +02:00
parent fbab33d71c
commit 5fcd8dd67e
6 changed files with 54 additions and 244 deletions

View file

@ -1,5 +1,5 @@
# Get the latest Pi-hole version
FROM pihole/pihole:2022.07.1
FROM pihole/pihole:2022.08.3
# Install necessary programs
RUN apt-get update && \
@ -10,21 +10,24 @@ RUN apt-get update && \
# Additional configs
# unbound
COPY unbound-v1.9_pihole.conf /etc/unbound/unbound.conf.d/pihole.conf
#COPY unbound-v1.13.1_pihole.conf /etc/unbound/unbound.conf.d/pihole.conf
COPY unbound-pihole.conf /etc/unbound/unbound.conf.d/pihole.conf
# Download the DNS-Root-Zone.
# Set edns packet limit for dnsmasq
COPY 99-edns.conf /etc/dnsmasq.d/99-edns.conf
# Download DNS-Root-Zone.
# 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 && \
mv root.hints /var/lib/unbound/ && \
chown -R unbound:unbound /var/lib/unbound/root.hints
# Unbound startup script
COPY start_unbound_and_s6_init.sh start_unbound_and_s6_init.sh
RUN chmod +x start_unbound_and_s6_init.sh
ENTRYPOINT ./start_unbound_and_s6_init.sh
# Remove unnecessary programs
RUN apt-get remove -y \
wget
# Unbound startup script
RUN mkdir -p /etc/services.d/unbound
COPY unbound-run /etc/services.d/unbound/run
ENTRYPOINT ./s6-init