mirror of
https://github.com/pi-hole/web.git
synced 2026-04-27 04:04:00 +01:00
Add DNSSEC to web UI
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user