ISPConfig 3 Update a DNS 'A' Record programmatically

Discussion in 'General' started by sghazagh, Sep 6, 2019.

  1. sghazagh

    sghazagh Member

    Hi every one,
    Is there any way to update only one 'A' record of one DNS zone of one domain in ISPConfig 3 programmatically via shell or php script?

    I use one subdomain A record to point to my home server which has no Static IP.
    Home server uploads the last public IP to my ISPConfig server outside the home and I need to update the A record of my subdomain to always have my latest home IP address so I can use my subdomain all the time and it resolves to my home dynamic address.

    Is there anyway I can make a script in either php or shell that I can use cron to update that record in ISPConfig?

    Any help would be appreciated,
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, you can do that with the ISPConfig remote API. You can find examples here in the forum and in the remote_client folder of the ISPConfig tar.gz file.
     
  3. sghazagh

    sghazagh Member

    Thanks till,
    Functions of ISPconfig are endless, what a great application...
    I could manage to update my record properly as per API sample function 'dns_a_update.php'

    Thank you
     
    ahrasis and till like this.

Share This Page