The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

DNS related hooks wont work/don't exist?

Discussion in 'Workarounds and Optimization' started by samigknighted, Apr 5, 2015.

  1. samigknighted

    samigknighted Registered

    Joined:
    Apr 5, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Currently I'm aiming to build some deployable hooks to integrate the DNS stuff in cPanel with Rackspace's Cloud DNS API. I've read through the documentation "Guide to Standardized Hooks" and I'm at a loss.

    I've tried hooking into the Api2 call for ZoneEdit::add_zone_record and it doesn't seem to work when I add a zone in WHM or create a user.

    If there any way that I can get some code to execute when DNS records are modified/added/deleted?
     
  2. samigknighted

    samigknighted Registered

    Joined:
    Apr 5, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    As an update, I found out there is nothing for the actual WHM side.

    I ended up just writing a script that I run in a cronjob to sync zone data over to Rackspace Cloud DNS. If anyone else needs this, I've attached it to this comment. It's licensed under the MIT License.
     

    Attached Files:

  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Thank you for taking the time to provide others with a workaround. I've moved this to our "Workarounds and Optimization" forum.

    Thank you.
     
Loading...

Share This Page