From 4165e08c65078ada8863c505a285aed3c95404c3 Mon Sep 17 00:00:00 2001 From: foxy82 Date: Mon, 20 Jun 2022 18:54:02 +0100 Subject: [PATCH] Update README.md (#379) To run a DHCP server I needed to add "--cap-add=NET_ADMIN" as per pihole docs here: https://github.com/pi-hole/docker-pi-hole#note-on-capabilities ServerIP is now deprecated - change as suggested in pihole docs: https://github.com/pi-hole/docker-pi-hole#deprecated-environment-variables --- run-pihole/README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/run-pihole/README.md b/run-pihole/README.md index 4293354..fc6742c 100644 --- a/run-pihole/README.md +++ b/run-pihole/README.md @@ -93,13 +93,16 @@ Note: IP and VLAN settings for you pihole network, 20-dns-conflist and 10-dns.sh Note: --name MUST match the name you set in 10-dns.sh - -e ServerIP MUST be in the range you set for your ihole network + -e FTLCONF_REPLY_ADDR4 MUST be in the range you set for your pihole network -e TZ MUST match the timezone for your controller The example uses these upstream DNS servers The following command sets the upstream DNS servers to `1.1.1.1` ([Cloudflare DNS](https://1.1.1.1/)) and `8.8.8.8` ([Google DNS](https://developers.google.com/speed/public-dns/)). If you want to use different upstream DNS servers, change the following lines: --dns=1.1.1.1 \ --dns=8.8.8.8 \ + +If you want to run a DHCP server as well you need to add the following lines: + --cap-add=NET_ADMIN 5.0 Run the following (or your modified version) by copy / pasting the entire set. @@ -109,6 +112,7 @@ If you want to use different upstream DNS servers, change the following lines: --restart always \ --name pihole \ -e TZ="America/Los Angeles" \ + --cap-add=NET_ADMIN \ -v "/mnt/data/etc-pihole/:/etc/pihole/" \ -v "/mnt/data/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/" \ --dns=127.0.0.1 \ @@ -117,7 +121,7 @@ If you want to use different upstream DNS servers, change the following lines: --hostname pi.hole \ -e VIRTUAL_HOST="pi.hole" \ -e PROXY_LOCATION="pi.hole" \ - -e ServerIP="10.0.5.3" \ + -e FTLCONF_REPLY_ADDR4="10.0.5.3" \ -e IPv6="False" \ pihole/pihole:latest ```