mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 14:20:18 +00:00
dnsmasq "bogus-priv" property
This commit is contained in:
parent
85e3f37503
commit
2977168da1
1 changed files with 13 additions and 1 deletions
|
@ -90,9 +90,21 @@ SetDNSServers(){
|
||||||
echo "domain-needed" >> /etc/dnsmasq.d/01-pihole.conf
|
echo "domain-needed" >> /etc/dnsmasq.d/01-pihole.conf
|
||||||
echo "DNS_FQDN_REQUIRED=true" >> /etc/pihole/setupVars.conf
|
echo "DNS_FQDN_REQUIRED=true" >> /etc/pihole/setupVars.conf
|
||||||
else
|
else
|
||||||
|
# Leave it deleted if not wanted
|
||||||
echo "DNS_FQDN_REQUIRED=false" >> /etc/pihole/setupVars.conf
|
echo "DNS_FQDN_REQUIRED=false" >> /etc/pihole/setupVars.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Remove bogus-priv entry
|
||||||
|
sed -i '/bogus-priv/d;' /etc/dnsmasq.d/01-pihole.conf
|
||||||
|
|
||||||
|
# Readd it if required
|
||||||
|
if [[ "${args[5]}" == "bogus-priv" ]]; then
|
||||||
|
echo "bogus-priv" >> /etc/dnsmasq.d/01-pihole.conf
|
||||||
|
echo "DNS_BOGUS_PRIV=true" >> /etc/pihole/setupVars.conf
|
||||||
|
else
|
||||||
# Leave it deleted if not wanted
|
# Leave it deleted if not wanted
|
||||||
|
echo "DNS_BOGUS_PRIV=false" >> /etc/pihole/setupVars.conf
|
||||||
|
fi
|
||||||
|
|
||||||
# Restart dnsmasq to load new configuration
|
# Restart dnsmasq to load new configuration
|
||||||
RestartDNS
|
RestartDNS
|
||||||
|
|
Loading…
Reference in a new issue