possible problem with bind (web/api config) and waste config

Started by opns_neuling, May 03, 2021, 11:09:47 AM

Previous topic - Next topic
Hello!
if you create a zone in bind (regardless of whether webui / api), then the hosts, and then delete the zone again, the hosts remain in the configuration file. The problem is if you have created the zone several times (for testing or automation via API), deleted it and then created it again, the size of config.xml becomes huge. side effect is that the webgui is sluggish when the config.xml is so big.
In my case:
config.xml with bind block was about 9 MB in size,
after deleting the bind block using ...
sed -i '' -e '/ <bind> /, / <\ / bind> / d' config.xml
my config.xml is now about 300k.
Cheers