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.

dnsadmin module - querying local API

Discussion in 'cPanel Developers' started by FabryB, Jan 2, 2015.

  1. FabryB

    FabryB Registered

    Joined:
    Jan 2, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Hello,
    I am trying to make a pluggable dnsadmin module which uses simply RNDC to replicate zones between servers.
    https://documentation.cpanel.net/display/SDK/Pluggable+dnsadmin+Modules

    I am in need of finding out the MAIN IP of local server to execute rndc ADDZONE command.

    I tought I could doa query to LOCAL api, but it asks me for credentials.
    Since the script which is running is already authenticated, is there a way to do query to local cpanel without the security key?

    I tried to instantiate the publicapi without any parameters, because documentation tells "empty parameters = autodetect" but that doesn't work.

    Any suggestions?

    Regards
    Fabrizio
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you provide an example of how you are attempting to obtain this data through your script so we can attempt to replicate the issue?

    Thank you.
     
Loading...

Share This Page