pub async fn add_ptr_record(
zone_name: &str,
name: &str,
ptr_data: &PTRRecordData,
server: &str,
key_data: &RndcKeyData,
) -> Result<()>Expand description
Add a PTR record using dynamic DNS update (RFC 2136) with RRset synchronization.
If the existing RRset differs from the desired state, the entire PTR
RRset for the name is deleted and recreated so stale rdata never lingers.
ยงErrors
Returns an error if:
- DNS server connection fails
- TSIG signer creation fails
- DNS update is rejected by the server
- Invalid domain name or target