Hook action when a dns zone has been changed
Hi!
I would like to run an action when a DNS zone has been modified. I haven't found anything in the hooks documentation. What would be the best way to develop it?
If there is no hook, I had thought of registering the "SOA Serial Number" of all zones in a table and using cron to verify when one has been modified and then analyze that complete zone and execute the action.
Any better ideas?
Thank you
-
The documentation here Guide to Standardized Hooks - Developer Documentation - cPanel Documentation goes over the hooks system and its implementation. Since what you're looking for isn't a standard hookable even you can define your own hookable events, the documentation here goes over this: Guide to Standardized Hooks - Hookable Events in Custom Modules - Developer Documentation - cPanel Documentation 0 -
Hello @cPaneLauren , that documentation seems to be to create a hook of our application. But what we want is to execute an action when a dns zone has been modified. 0 -
You can create a custom hookable event - the documentation in hookable events in custom modules provides instructions on how to do this. 0
Please sign in to leave a comment.
Comments
3 comments