Skip to main content

API ZoneEdit edit_zone_record TTL Update

Comments

5 comments

  • cPanelMichael
    Hello, I'm unable to reproduce this issue on a test system:
    # grep sub123 /var/named/cptest01.com.db sub123 600 IN A 10.10.10.10 # cpapi2 --user=cptest01 ZoneEdit edit_zone_record Line=25 domain=cptest01.com name=sub123 type=A address=10.10.10.10 ttl=700 class=IN # grep sub123 /var/named/cptest01.com.db sub123 700 IN A 10.10.10.10
    Could you verify which version of cPanel is installed on this system? Also, are you manually entering a IP Address in place of "$HOMEIP" in the example you provided, or is the value obtained from a custom script? Thank you.
    0
  • BlackAqua
    Hi Michael, The IP is obtained via a custom script, but as mentioned, the IP is updated OK. So I've manually set the TTL to 600 in WHM web...
    # grep sub /var/named/domain.com.db sub 600 IN A 255.255.255.255 # cpapi2 --user=username ZoneEdit edit_zone_record Line=48 domain=domain.com name=sub type=A address=10.10.10.10 ttl=600 class=IN --- cpanelresult: apiversion: 2 data: - result: newserial: '2017011504' status: 1 statusmsg: '' event: result: 1 func: edit_zone_record module: ZoneEdit # grep sub/var/named/domain.com.db sub 14400 IN A 10.10.10.10
    Note how it reverts back to 14400.
    /etc/redhat-release:CentOS Linux release 7.3.1611 (Core) /usr/local/cpanel/version:11.62.0.2 /var/cpanel/envtype:virtuozzo CPANEL=current Server version: Apache/2.4.25 (cPanel) Server built: Jan 4 2017 14:51:03
    0
  • cPanelMichael
    statusmsg: ''

    On a test system, I see the following in place of your output:
    statusmsg: "Bind reloading on current using rndc zone: [domain.tld]\n"
    What name server is configured under "WHM Home "Service Configuration " Nameserver Selection" on this system? Thank you.
    0
  • BlackAqua
    PowerDNS, not bind.
    0
  • cPanelMichael
    Hello, I've tested with PowerDNS and am still unable to reproduce the issue. Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0

Please sign in to leave a comment.