mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 23:08:07 +00:00
Merge pull request #1150 from pi-hole/tweak/DHCPdomain
Be able to disable the DHCP domain name
This commit is contained in:
commit
930cb15e2c
@ -232,10 +232,13 @@ dhcp-authoritative
|
|||||||
dhcp-range=${DHCP_START},${DHCP_END},${leasetime}
|
dhcp-range=${DHCP_START},${DHCP_END},${leasetime}
|
||||||
dhcp-option=option:router,${DHCP_ROUTER}
|
dhcp-option=option:router,${DHCP_ROUTER}
|
||||||
dhcp-leasefile=/etc/pihole/dhcp.leases
|
dhcp-leasefile=/etc/pihole/dhcp.leases
|
||||||
domain=${PIHOLE_DOMAIN}
|
|
||||||
#quiet-dhcp
|
#quiet-dhcp
|
||||||
" > "${dhcpconfig}"
|
" > "${dhcpconfig}"
|
||||||
|
|
||||||
|
if [[ "${PIHOLE_DOMAIN}" != "none" ]]; then
|
||||||
|
echo "domain=${PIHOLE_DOMAIN}" >> "${dhcpconfig}"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "${DHCP_IPv6}" == "true" ]]; then
|
if [[ "${DHCP_IPv6}" == "true" ]]; then
|
||||||
echo "#quiet-dhcp6
|
echo "#quiet-dhcp6
|
||||||
#enable-ra
|
#enable-ra
|
||||||
|
Loading…
Reference in New Issue
Block a user