Skip to content

Commit

Permalink
ignore SOA-EDIT for PRESIGNED zones. Fixes PowerDNS#5814
Browse files Browse the repository at this point in the history
(cherry picked from commit 3ba1065)
  • Loading branch information
Habbie authored and pieterlexis committed Nov 7, 2017
1 parent 0f9270d commit ed7d953
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion pdns/dbdnsseckeeper.cc
Expand Up @@ -229,9 +229,14 @@ void DNSSECKeeper::getSoaEdit(const DNSName& zname, std::string& value)
static const string soaEdit(::arg()["default-soa-edit"]);
static const string soaEditSigned(::arg()["default-soa-edit-signed"]);

if (isPresigned(zname)) {
// SOA editing on a presigned zone never makes sense
return;
}

getFromMeta(zname, "SOA-EDIT", value);

if ((!soaEdit.empty() || !soaEditSigned.empty()) && value.empty() && !isPresigned(zname)) {
if ((!soaEdit.empty() || !soaEditSigned.empty()) && value.empty()) {
if (!soaEditSigned.empty() && isSecuredZone(zname))
value=soaEditSigned;
if (value.empty())
Expand Down
2 changes: 1 addition & 1 deletion regression-tests.nobackend/counters/expected_result
Expand Up @@ -8,7 +8,7 @@ dnsupdate-queries=0
dnsupdate-refused=0
incoming-notifications=0
key-cache-size=0
meta-cache-size=1
meta-cache-size=2
overload-drops=0
packetcache-size=8
qsize-q=0
Expand Down

0 comments on commit ed7d953

Please sign in to comment.