add_caa_record

Function add_caa_record 

Source
pub async fn add_caa_record(
    zone_name: &str,
    name: &str,
    flags: i32,
    tag: &str,
    value: &str,
    ttl: Option<i32>,
    server: &str,
    key_data: &RndcKeyData,
) -> Result<()>
Expand description

Add a CAA record using dynamic DNS update (RFC 2136) with RRset synchronization.

If the existing RRset differs from the desired state, the entire CAA 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, flags, tag, or value