saltstack-formulas / bind-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
29 stars 117 forks source link

Use named-checkzone to check zonefiles for syntax-errors #122

Open morgana2313 opened 5 years ago

morgana2313 commented 5 years ago

The state bind.config doesn't check the contents of zone files with named-checkzone.

I would be nice to have this state fail on zones with errors in stead of exiting with "Succeeded", and to find with further investigation that bind didn't actually load the faulty zone because of errors.

morgana2313 commented 5 years ago

And the same goes for checking the bind config with named-checkconf after making changes and before restarting bind.

morgana2313 commented 5 years ago

named-check -z does both in one go.