Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

JSON API EditZoneRecord Not Working sometimes

Discussion in 'Bind/DNS/Nameserver' started by LuisCosta, May 14, 2018.

Tags:
  1. LuisCosta

    LuisCosta Registered

    Joined:
    Dec 29, 2016
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hi,

    I have a system to change zone record using json api, but sometimes the expected changes don't work, even the return is 200 - OK:

    access_log:189.22.231.21 - trayop [05/02/2018:19:07:32 -0000] "/json-api/editzonerecord?name=www&cname=630231.xpto.com.br&type=CNAME&class=IN&domain=domain.com.br&line=20"

    Facts:

    • It's occours sometimes (100 works, 1 fail)
    • No have issues on host at the fail moments
    • All failed response is OK

    Someone has the same problem? How to debug?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,298
    Likes Received:
    1,765
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you notice any output to /usr/local/cpanel/logs/error_log or /var/log/messages when it doesn't work? Do you notice it fails when using the WHM API 1 function to edit a specific type of DNS record?

    Thank you.
     
  3. LuisCosta

    LuisCosta Registered

    Joined:
    Dec 29, 2016
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hello Michael,

    Thanks for your reply!

    In the interval to answer this thread, I didn`t have a new issues. To another issues, these logs haven't any error message related with DNS (Named/bind) or CPanel API.

    I'll observe these log to get more information.

    Best regards.
     
    cPanelMichael likes this.
Loading...

Share This Page