I have server in development environment, we manage our DNS files through svn repositories. Few days ago, We messed up our DNS server by committing zone file with invalid serial number.
So I want to have provision that will validate syntax of zone file before someone commits it. I know about
named-checkzone command that validates zone file but can I try this in pre-commit or post-commit ? If yes, then How would I do that ? Or is there any other way to accomplish this ?
Any help would be appreciated.
If this is not be possible through SVN, then is there any way to check for syntax in zone file before reloading the
bind daemon itself ?