ispconfig api call - dns_zone_delete

Discussion in 'ISPConfig 3 Priority Support' started by tr909192, Oct 13, 2021.

  1. tr909192

    tr909192 Member HowtoForge Supporter

    Dear,

    we use this api call (with several others call), in order to delete the zone from the ispconfig master.
    But today we saw that this call remove only the soa records, and not all the records of the zone, that they remains on the database.
    Is that normal??
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes. In it#s current implementation, the API call deletes the zone only. But I agree that it would make sense to extend it in the future to do recursive deletes or at least stop with an error when there are still records in that zone.
     
    ahrasis likes this.
  3. tr909192

    tr909192 Member HowtoForge Supporter

    oh damn, that a very strange move for this api.
    btw, now we have a lot of records on the master db that refer to an old server_id now removed from the stack (the zone are already move on new a server on the same master-slave stack, so with a different server_id).
    In order to clean up stuff, can we remove all the previous records of the table dns_rr querying from the server_id?
    example:

    delete * from dns_rr where server_id=[OLD-SERVER-ID-NO-LONGER-USED]

    ?
    ty
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Deleting the dns_rr records via SQL is ok.
     
    tr909192 likes this.

Share This Page