Only add local=/<domain>/ when the "only forward FQDN queries" function is enabled to prevent unintended side-effects of this change

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2020-10-10 11:23:39 +02:00
parent d631cd8b04
commit 08a84e51d6
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD

View file

@ -372,7 +372,9 @@ dhcp-leasefile=/etc/pihole/dhcp.leases
if [[ "${PIHOLE_DOMAIN}" != "none" ]]; then
echo "domain=${PIHOLE_DOMAIN}" >> "${dhcpconfig}"
echo "local=/${PIHOLE_DOMAIN}/" >> "${dhcpconfig}"
if [[ "${DNS_FQDN_REQUIRED}" == true ]]; then
echo "local=/${PIHOLE_DOMAIN}/" >> "${dhcpconfig}"
fi
fi
# Sourced from setupVars