add_srv_record

Function add_srv_record 

Source
pub async fn add_srv_record(
    zone_name: &str,
    name: &str,
    srv_data: &SRVRecordData,
    server: &str,
    key_data: &RndcKeyData,
) -> Result<()>
Expand description

Add an SRV record using dynamic DNS update (RFC 2136) with RRset synchronization.

If the existing RRset differs from the desired state, the entire SRV 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