Hook action when a dns zone has been changed

jmginer

Well-Known Member
Jul 26, 2006
129
1
168
Alicante
cPanel Access Level
Root Administrator
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
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
6,762
535
263
Houston
cPanel Access Level
DataCenter Provider

jmginer

Well-Known Member
Jul 26, 2006
129
1
168
Alicante
cPanel Access Level
Root Administrator
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.
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
6,762
535
263
Houston
cPanel Access Level
DataCenter Provider
You can create a custom hookable event - the documentation in hookable events in custom modules provides instructions on how to do this.