CAA records via API

Discussion in 'General' started by cwispy, Mar 4, 2020.

  1. cwispy

    cwispy Active Member

    Hi Till,
    Can you please add the functions to remote.d/dns.php file and also the Remote User page under system settings? I have added the below to my test server and updated the table directly in the database to confirm its working, but it would be good to have it added to the core.

    //* Get record details
    public function dns_caa_get($session_id, $primary_id) {
    return $this->dns_rr_get($session_id, $primary_id, 'CAA');
    }

    //* Add a record
    public function dns_caa_add($session_id, $client_id, $params, $update_serial=false) {
    return $this->dns_rr_add($session_id, $client_id, $params, $update_serial, 'CAA');
    }

    //* Update a record
    public function dns_caa_update($session_id, $client_id, $primary_id, $params, $update_serial=false) {
    return $this->dns_rr_update($session_id, $client_id, $primary_id, $params, $update_serial, 'CAA');
    }

    //* Delete a record
    public function dns_caa_delete($session_id, $primary_id, $update_serial=false) {
    return $this->dns_rr_delete($session_id, $primary_id, $update_serial, 'CAA');
    }

    Regards
    Shane
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. cwispy

    cwispy Active Member

    Thanks Till, I have added via the git page.
     
    till likes this.

Share This Page