diff --git a/scripts/pi-hole/php/savesettings.php b/scripts/pi-hole/php/savesettings.php index 4e423d7a..edfd72b8 100644 --- a/scripts/pi-hole/php/savesettings.php +++ b/scripts/pi-hole/php/savesettings.php @@ -332,6 +332,10 @@ function addStaticDHCPLease($mac, $ip, $hostname) { { $DNSinterface = "single"; } + elseif($_POST["DNSinterface"] === "bind") + { + $DNSinterface = "bind"; + } elseif($_POST["DNSinterface"] === "all") { $DNSinterface = "all"; diff --git a/settings.php b/settings.php index 54d8843a..db06e11c 100644 --- a/settings.php +++ b/settings.php @@ -132,6 +132,8 @@ if (isset($setupVars["DNSSEC"])) { if (isset($setupVars["DNSMASQ_LISTENING"])) { if ($setupVars["DNSMASQ_LISTENING"] === "single") { $DNSinterface = "single"; + } elseif ($setupVars["DNSMASQ_LISTENING"] === "bind") { + $DNSinterface = "bind"; } elseif ($setupVars["DNSMASQ_LISTENING"] === "all") { $DNSinterface = "all"; } else { @@ -830,34 +832,45 @@ if (isset($_GET['tab']) && in_array($_GET['tab'], array("sysadmin", "dns", "piho
These options are dangerous on devices + directly connected to the Internet such as cloud instances and are only safe if your + Pi-hole is properly firewalled. In a typical at-home setup where your Pi-hole is + located within your local network (and you have not forwarded port 53 + in your router!) they are safe to use.
Note that the last option should not be used on devices which are - directly connected to the Internet. This option is safe if your - Pi-hole is located within your local network, i.e. protected behind - your router, and you have not forwarded port 53 to this device. In - virtually all other cases you have to make sure that your Pi-hole is - properly firewalled.
+See our documentation for further technical details.