Hook action when a dns zone has been changed

jmginer

Well-Known Member
Jul 26, 2006
150
4
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

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston

jmginer

Well-Known Member
Jul 26, 2006
150
4
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.