add_ns_record

Function add_ns_record 

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

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

NS records managed here are used for delegations. If the existing RRset differs from the desired state, the entire NS RRset for the name is deleted and recreated so stale delegation rdata never lingers.

ยงErrors

Returns an error if the DNS update fails or the server rejects it.