Function delete_rrset
pub fn delete_rrset(
record: Record,
zone_origin: Name,
use_edns: bool,
) -> Message
Expand description
Deletes an entire rrset
RFC 2136, DNS Update, April 1997
2.5.2 - Delete An RRset
One RR is added to the Update Section whose NAME and TYPE are those
of the RRset to be deleted. TTL must be specified as zero (0) and is
otherwise not used by the Primary Zone Server. CLASS must be specified as
ANY. RDLENGTH must be zero (0) and RDATA must therefore be empty.
If no such RRset exists, then this Update RR will be silently ignored
by the Primary Zone Server.
ยงArguments
record
- The name, class and record_type will be used to match and delete the RecordSetzone_origin
- the zone name to update, i.e. SOA nameuse_edns
- if true, EDNS options will be added to the request
The update must go to a zone authority (i.e. the server used in the ClientConnection). If no such RRset exists, then this Update RR will be silently ignored by the Primary Zone Server.