Skip to content

Commit d482b4e

Browse files
author
thom
committed
Make DNSSEC available when value is null (#5571)
1 parent a265c64 commit d482b4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/plugins-available/powerdns_plugin.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ function zoneRediscover() {
449449

450450
function notifySlave($data) {
451451
global $app;
452-
452+
453453
$pdns_control = $this->find_pdns_control();
454454
if ( $pdns_control != false ) {
455455
$app->system->exec_safe($pdns_control . ' notify ?', rtrim($data["new"]["origin"],"."));
@@ -458,7 +458,7 @@ function notifySlave($data) {
458458

459459
function fetchFromMaster($data) {
460460
global $app;
461-
461+
462462
$pdns_control = $this->find_pdns_control();
463463
if ( $pdns_control != false ) {
464464
$app->system->exec_safe($pdns_control . ' retrieve ?', rtrim($data["new"]["origin"],"."));
@@ -502,7 +502,7 @@ function handle_dnssec($data) {
502502
}
503503

504504
// If DNSSEC is wanted, enable it
505-
if ($data['new']['dnssec_wanted'] === 'Y' && $data['old']['dnssec_wanted'] === 'N') {
505+
if ($data['new']['dnssec_wanted'] === 'Y' && (is_null($data['old']['dnssec_wanted']) || $data['old']['dnssec_wanted'] === 'N')) {
506506
$this->soa_dnssec_create($data);
507507
}
508508
}

0 commit comments

Comments
 (0)