From: Miod Vallat Date: Wed, 28 May 2025 06:20:49 +0000 (+0200) Subject: Suggest create-zone after view-add-zone of a nonexisting zone. X-Git-Tag: dnsdist-2.0.0-beta1~51^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F15604%2Fhead;p=thirdparty%2Fpdns.git Suggest create-zone after view-add-zone of a nonexisting zone. --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 59bd7c3718..54a35f32bf 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -4624,7 +4624,14 @@ static int viewAddZone(vector& cmds, const std::string_view synopsis) if (!B.viewAddZone(view, zone)) { cerr<<"Operation failed."<&1 | (egrep -v 'destructor' || true) +$PDNSUTIL -q --config-dir=. --config-name=$backend $* 2>&1 | (egrep -v 'destructor' || true) } set -e # to make this first call exit us early for non-variant capable backends.