From cd624e77d09e58228f5b54207f34496463193069 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Wed, 25 Nov 2020 13:07:12 +0100 Subject: [PATCH] pdnsutil add-record: notice when backend does not support replaceRRSet. Fixes #9730 --- pdns/pdnsutil.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index f9d0481db8..a8b1ffc577 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1408,7 +1408,10 @@ static int addOrReplaceRecord(bool addOrReplace, const vector& cmds) { } - di.backend->replaceRRSet(di.id, name, rr.qtype, newrrs); + if(!di.backend->replaceRRSet(di.id, name, rr.qtype, newrrs)) { + cerr<<"backend did not accept the new RRset, aborting"<lookup(rr.qtype, name, di.id); cout<<"New rrset:"<