diff options
author | DL6ER <DL6ER@users.noreply.github.com> | 2020-10-21 22:09:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 22:09:05 +0300 |
commit | 50100017a58f7b30e29dda07732128ae9ff87644 (patch) | |
tree | 9594e3f39ce2fcf004cd5034155cb068fbb05933 /advanced/Scripts/webpage.sh | |
parent | de02bcc8a0064a568afad3d3f15ae41238b85e55 (diff) | |
parent | 08a84e51d69b86c018aa6aab1201d66f863995a6 (diff) |
Merge pull request #3794 from pi-hole/security/non_FQDNs_locality
Security enhancement for the "never forward non-FQDNs" feature
Diffstat (limited to 'advanced/Scripts/webpage.sh')
-rwxr-xr-x | advanced/Scripts/webpage.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index e9d23289..8aaaa85a 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -167,9 +167,11 @@ ProcessDNSSettings() { fi delete_dnsmasq_setting "domain-needed" + delete_dnsmasq_setting "expand-hosts" if [[ "${DNS_FQDN_REQUIRED}" == true ]]; then add_dnsmasq_setting "domain-needed" + add_dnsmasq_setting "expand-hosts" fi delete_dnsmasq_setting "bogus-priv" @@ -370,6 +372,9 @@ dhcp-leasefile=/etc/pihole/dhcp.leases if [[ "${PIHOLE_DOMAIN}" != "none" ]]; then echo "domain=${PIHOLE_DOMAIN}" >> "${dhcpconfig}" + if [[ "${DNS_FQDN_REQUIRED}" == true ]]; then + echo "local=/${PIHOLE_DOMAIN}/" >> "${dhcpconfig}" + fi fi # Sourced from setupVars |