Skip to content

Commit

Permalink
fixup! pdnsutil {add-record,delete-rrset}: Don't append ZONE if NAME …
Browse files Browse the repository at this point in the history
…ends with . or ZONE
  • Loading branch information
ukleinek committed Jan 13, 2025
1 parent 79bbff4 commit 3714bab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/pdnsutil.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,7 @@ static int deleteRRSet(const std::string& zone_, const std::string& name_, const
DNSName name;
if (name_ == "@") {
name = zone;
} else if (isCanonical(name_) || boost::ends_with(name_, zone)) {
} else if (isCanonical(name_) || boost::ends_with(name_, zone_)) {
name = DNSName(name_);
} else {
cerr << "Name " << name_ << "' does not fit into zone '" << zone << "'. Interpreting as relative name." << endl;
Expand Down

0 comments on commit 3714bab

Please sign in to comment.