Merge pull request #355 from pi-hole/DNSSEC

Add DNSSEC to web UI
This commit is contained in:
DL6ER
2017-01-12 21:40:23 +01:00
committed by GitHub
2 changed files with 29 additions and 2 deletions
+12 -2
View File
@@ -112,11 +112,21 @@ function validDomain($domain_name)
// Check if domain-needed is requested
if(isset($_POST["DNSbogusPriv"]))
{
$extra .= "bogus-priv";
$extra .= "bogus-priv ";
}
else
{
$extra .= "no-bogus-priv";
$extra .= "no-bogus-priv ";
}
// Check if DNSSEC is requested
if(isset($_POST["DNSSEC"]))
{
$extra .= "dnssec";
}
else
{
$extra .= "no-dnssec";
}
// If there has been no error we can save the new DNS server IPs
+17
View File
@@ -411,6 +411,19 @@
} else {
$DNSbogusPriv = true;
}
if(isset($setupVars["DNSSEC"])){
if($setupVars["DNSSEC"])
{
$DNSSEC = true;
}
else
{
$DNSSEC = false;
}
} else {
$DNSSEC = false;
}
?>
<div class="box box-warning">
<div class="box-header with-border">
@@ -459,6 +472,10 @@
<div class="checkbox"><label><input type="checkbox" name="DNSbogusPriv" <?php if($DNSbogusPriv){ ?>checked<?php } ?> title="bogus-priv"> never forward reverse lookups for private IP ranges</label></div>
</div>
<p>Note that enabling these two options may increase your privacy slightly, but may also prevent you from being able to access local hostnames if the Pi-Hole is not used as DHCP server</p>
<div class="form-group">
<div class="checkbox"><label><input type="checkbox" name="DNSSEC" <?php if($DNSSEC){ ?>checked<?php } ?>> Use DNSSEC</label></div>
</div>
<p>Validate DNS replies and cache DNSSEC data. When forwarding DNS queries, Pi-hole requests the DNSSEC records needed to validate the replies. Use Google or Norton DNS servers when activating DNSSEC. Note that the size of your log might increase significantly when enabling DNSSEC. A DNSSEC resolver test can be found <a href="http://dnssec.vs.uni-due.de/" target="_blank">here</a>.</p>
</div>
</div>
</div>