When using the mass_edit_zone API function, it requires the current serial number to be passed as an input parameter.
I can call parse_zone to get the DNS records for the zone and isolate the SOA record, which contains the serial number. However, I can't see how to identify which of the lines in the returned data_b64 field is the serial in my app. I can tell by visually looking at the data, but there doesn't seem to be any text to identify the different values in this field.
1) Is there a better or more precise way to get the zone serial number to be used in mass_edit_zone (rather than just extracting the number that "looks" like a serial)?
2) Are there distinct functions for adding, deleting, and updating DNS records aside from mass_edit_zone that don't require serial?
I've been using add_zone_record and remove_zone_record, but they don't appear in the latest API docs any more so I'm assuming they are deprecated and mass_edit_zone is their single replacement. Please let me know if this is incorrect.
Thanks,
I can call parse_zone to get the DNS records for the zone and isolate the SOA record, which contains the serial number. However, I can't see how to identify which of the lines in the returned data_b64 field is the serial in my app. I can tell by visually looking at the data, but there doesn't seem to be any text to identify the different values in this field.
1) Is there a better or more precise way to get the zone serial number to be used in mass_edit_zone (rather than just extracting the number that "looks" like a serial)?
2) Are there distinct functions for adding, deleting, and updating DNS records aside from mass_edit_zone that don't require serial?
I've been using add_zone_record and remove_zone_record, but they don't appear in the latest API docs any more so I'm assuming they are deprecated and mass_edit_zone is their single replacement. Please let me know if this is incorrect.
Thanks,
Last edited by a moderator: