From adabe4c7863b47f346edfe2e0d712a5c43fbf306 Mon Sep 17 00:00:00 2001 From: LawnMo <81721212+LawnMo@users.noreply.github.com> Date: Sun, 13 Feb 2022 17:28:14 +0100 Subject: [PATCH] reduce edns-buffer-size to 1232 (#99) avoids warnings in pihole such as : Warning in dnsmasq core: reducing DNS packet size for nameserver 127.0.0.1 to 1280 from pihole's doc : https://docs.pi-hole.net/guides/dns/unbound/ --- one-container/pihole-unbound/99-edns.conf | 1 + one-container/pihole-unbound/Dockerfile | 1 + one-container/pihole-unbound/unbound-pihole.conf | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 one-container/pihole-unbound/99-edns.conf diff --git a/one-container/pihole-unbound/99-edns.conf b/one-container/pihole-unbound/99-edns.conf new file mode 100644 index 0000000..379513b --- /dev/null +++ b/one-container/pihole-unbound/99-edns.conf @@ -0,0 +1 @@ +edns-packet-max=1232 \ No newline at end of file diff --git a/one-container/pihole-unbound/Dockerfile b/one-container/pihole-unbound/Dockerfile index bea6e3a..e810670 100644 --- a/one-container/pihole-unbound/Dockerfile +++ b/one-container/pihole-unbound/Dockerfile @@ -3,6 +3,7 @@ RUN apt update && apt install -y unbound COPY lighttpd-external.conf /etc/lighttpd/external.conf COPY unbound-pihole.conf /etc/unbound/unbound.conf.d/pi-hole.conf +COPY 99-edns.conf /etc/dnsmasq.d/99-edns.conf COPY start_unbound_and_s6_init.sh start_unbound_and_s6_init.sh RUN chmod +x start_unbound_and_s6_init.sh diff --git a/one-container/pihole-unbound/unbound-pihole.conf b/one-container/pihole-unbound/unbound-pihole.conf index ff07a82..9f1e9bf 100644 --- a/one-container/pihole-unbound/unbound-pihole.conf +++ b/one-container/pihole-unbound/unbound-pihole.conf @@ -34,7 +34,7 @@ server: # Reduce EDNS reassembly buffer size. # Suggested by the unbound man page to reduce fragmentation reassembly problems - edns-buffer-size: 1472 + edns-buffer-size: 1232 # Perform prefetching of close to expired message cache entries # This only applies to domains that have been frequently queried