Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    4

    Default API access to DNSONLY version

    Hello,

    I have 2 cPanel servers (full version) that are hooked up to DNS cluster consisted of two DNSONLY cPanels.

    I need to add, and occasionally modify, some external domains and was planning to use my DNS cluster and API calls to achieve this.

    However, any API calls to DNSONLY cPanels are ending with following response:

    Code:
    <license>
      <status>0</status>
      <statusmsg>Cannot Read License File</statusmsg>
    </license>
    Obviously, API calls that I'm interested in are from the DNS area (more exactly, I tried /xml-api/listzones).

    Are there any limitations or do I have to do anything before I'll be able to use API on DNSONLY servers? I suppose it must be possible because cPanel itself is able to add/remove/update DNS zones.

  2. #2
    Registered User
    Join Date
    May 2010
    Posts
    4

    Default

    I tried to troubleshoot it as shown on cPanel integration blog. Below is the output.

    Code:
    ]8842][05/09/2010:13:57:14 -0000][getreq 1]: [GET /xml-api/listzones HTTP/1.1
    [8842][05/09/2010:13:57:14 -0000][headerparser 1]:TE: deflate,gzip;q=0.3
    [8842][05/09/2010:13:57:14 -0000][headerparser 1]:Connection: TE, close
    [8842][05/09/2010:13:57:14 -0000][headerparser 1]:Authorization: WHM root:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    [8842][05/09/2010:13:57:14 -0000][headerparser 1]:Host: XXX:2086
    [8842][05/09/2010:13:57:14 -0000][headerparser 1]:User-Agent: libwww-perl/5.834
    [8842][05/09/2010:13:57:14 -0000][killconnection 1]
    [8842][05/09/2010:13:57:14 -0000][killconnection exit 1]
    If there is anything else that could help, please let me know.

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    4

    Default

    Anyone? I'm still stuck in the same place :-(

    Any help greatly appreciated.

  4. #4
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    You wouldn't do the zone editing at the DNS Only servers ....

    If you want to add extra domains (DNS zones) to your network outside of
    hosting, you would take one of your regular Cpanel hosting servers within
    your cluster and use the "Add a DNS zone" function in WHM.

    After that, if you needed to edit those zones, you would just simply edit the
    DNS zone on the machine where you originally added the DNS zone and if
    you interfaced any API's, it would again be that same hosting machine.

    All changes you make are automatically replicated to the DNS Only
    machines assuming your cluster is setup correctly.

  5. #5
    Registered User
    Join Date
    May 2010
    Posts
    4

    Default

    Ah - right. So I just need to use one of these normal servers and add these domains on it, locally and these will get replicated later on.

    Not sure why I haven't thought about it before ;-)

    Thanks!

  6. #6
    cPanel Staff cPanelMatt's Avatar
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    409

    Default

    The XMLAPI is not functional inside of DNSONLY 11.25.0.

    Furthermore DNS management functions of the XMLAPI have been explicitly disabled in previous versions of cPanel as well.
    Matt Dees
    Integration Developer
    cPanel, Inc.
    cPanel Integration Blog

  7. #7
    Member
    Join Date
    Sep 2003
    Posts
    124

    Default

    Quote Originally Posted by cPanelMatt View Post
    The XMLAPI is not functional inside of DNSONLY 11.25.0.

    Furthermore DNS management functions of the XMLAPI have been explicitly disabled in previous versions of cPanel as well.
    Thats pretty crappy. Your actually going out of your way to disable a feature that could be useful to people. Its not like we asking for extra features. =/

  8. #8
    Member
    Join Date
    Oct 2007
    Posts
    15

    Default

    Yeah, unfortunately I have to agree as well. I would like to be able to issue API calls to our DNSONLY server when our main server is down, so that I could temporarily point domains to a different server, but evidently this is not possible unless I use SSH and manually update the DNS records from my scripts. Seems like a cPanel API call would have been a much cleaner approach, but oh well..

Similar Threads & Tags
Similar threads

  1. Go from DNSOnly to Full Version?
    By ne0shell in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-21-2010, 02:30 PM
  2. DNSONLY - how to install beta version?
    By maysoft in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-07-2007, 07:11 PM
  3. Cpanel DNSOnly version disabling news display??
    By jkristjan in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-30-2006, 12:45 PM
  4. dnsonly version wont run whm
    By DomineauX in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-11-2005, 03:58 PM
  5. instructions for installing dnsonly version?
    By Jeff-C in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 09-11-2004, 05:11 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube