Skip to content

Commit

Permalink
Merge pull request #14711 from Habbie/backport-14261-to-auth-4.9.x
Browse files Browse the repository at this point in the history
auth-4.9 pdnsutil check-zone: make LUA records optional
  • Loading branch information
Habbie authored Sep 26, 2024
2 parents f31f259 + cdccfeb commit b2bb37c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pdns/pdnsutil.cc
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ static int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, con
if(rr.qtype.getCode() == QType::A || rr.qtype.getCode() == QType::AAAA) {
addresses.insert(rr.qname);
}
#ifdef HAVE_LUA_RECORDS
if(rr.qtype.getCode() == QType::LUA) {
shared_ptr<DNSRecordContent> drc(DNSRecordContent::make(rr.qtype.getCode(), QClass::IN, rr.content));
auto luarec = std::dynamic_pointer_cast<LUARecordContent>(drc);
Expand All @@ -386,6 +387,7 @@ static int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, con
addresses.insert(rr.qname);
}
}
#endif
if(rr.qtype.getCode() == QType::A) {
arecords.insert(rr.qname);
}
Expand Down

0 comments on commit b2bb37c

Please sign in to comment.