if (!B.viewAddZone(view, zone)) {
cerr<<"Operation failed."<<endl;
return 1;
- }
+ }
+ if (!g_quiet) {
+ DomainInfo info;
+ if (!B.getDomainInfo(zone, info)) {
+ cout << "Zone '" << zone << "' does not exist yet."<< endl;
+ cout << "Consider creating it with 'pdnsutil create-zone " << zone << "'" << endl;
+ }
+ }
return 0;
}
set -o pipefail
pdnsutil_wrapper() {
-$PDNSUTIL --config-dir=. --config-name=$backend $* 2>&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.