There were no replies to my message below, and I'm assuming that that
means that there's currently no way to do this.
If so, I'll open a feature request on github, but if someone knows
something I've missed, let me know. Thanks!
On 9/29/22 10:39 AM, Robert L Mathews via Pdns-users wrote:
I'm using the BIND backend with autoprimaries, and also adding zones
with "pdns_control bind-add-zone example.com filename". Both of these
successfully add the zone to the named.conf file.
Is there a way to later *remove* a zone from the named.conf file using
pdns_control (or some other programmatic method)?
I guess I'm looking for something like "pdns_control bind-delete-zone
example.com", but the only way I can find to do it is to manually edit
the named.conf file and then use "pdns_control rediscover".
(I've tried "pdnsutil delete-zone example.com", but that just gives
"Failed to delete domain 'example.com'".)
Thanks!
--
Robert L Mathews
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users