#[non_exhaustive]pub struct DnsAnswer {
pub class: Option<String>,
pub flag_ids: Option<Vec<i64>>,
pub flags: Option<Vec<String>>,
pub packet_uid: Option<i64>,
pub rdata: Option<String>,
pub ttl: Option<i64>,
pub type: Option<String>,
}Expand description
DNS Answer
The DNS Answer object represents a specific response provided by the Domain Name System (DNS) when querying for information about a domain or performing a DNS operation. It encapsulates the relevant details and data returned by the DNS server in response to a query.
[] Category: | Name: dns_answer
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.class: Option<String>Resource Record Class
The class of DNS data contained in this resource record. See RFC1035. For example: IN.
recommended
flag_ids: Option<Vec<i64>>DNS Header Flags
The list of DNS answer header flag IDs.
recommended
flags: Option<Vec<String>>DNS Header Flags
The list of DNS answer header flags.
optional
packet_uid: Option<i64>Packet UID
The DNS packet identifier assigned by the program that generated the query. The identifier is copied to the response.
recommended
rdata: Option<String>DNS RData
The data describing the DNS resource. The meaning of this data depends on the type and class of the resource record.
required
ttl: Option<i64>TTL
The time interval that the resource record may be cached. Zero value means that the resource record can only be used for the transaction in progress, and should not be cached.
recommended
type: Option<String>Resource Record Type
The type of data contained in this resource record. See RFC1035. For example: CNAME.
recommended