Add DNSSEC to web UI

This commit is contained in:
DL6ER
2017-01-12 16:02:09 +01:00
parent c98399d6b1
commit 99fb6ad8ce
2 changed files with 30 additions and 2 deletions

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
@@ -124,6 +134,7 @@ function validDomain($domain_name)
{
exec("sudo pihole -a setdns ".$primaryIP." ".$secondaryIP." ".$extra);
$success .= "The DNS settings have been updated";
$success = "sudo pihole -a setdns ".$primaryIP." ".$secondaryIP." ".$extra;
}
else
{