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).

ยง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