How can i set new soa serial after add an a record via remote api

Discussion in 'Developers' Forum' started by David Bursch, Mar 6, 2017.

  1. David Bursch

    David Bursch New Member

    Maybe i didnt see forest because of an tree in front of me but i didnt found it by the examples.
    I add a new a record thats works fine but how can update a new serial.

    thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The serial is a field with the name "serial" of the $params aray of the zone. Basically you can use:

    $zone = $remote->dns_zone_get(......)

    to get the zone, then increase the serial which is in $zone['serial'] and then pass $zone as $params array to the dns_zone_update function of the api.
     
    Jesse Norell likes this.

Share This Page