#[non_exhaustive]pub struct DnsQuery {
pub class: Option<String>,
pub hostname: Option<String>,
pub opcode: Option<String>,
pub opcode_id: Option<i64>,
pub packet_uid: Option<i64>,
pub type: Option<String>,
}Expand description
DNS Query
The DNS query object represents a specific request made to the Domain Name System (DNS) to retrieve information about a domain or perform a DNS operation. This object encapsulates the necessary attributes and methods to construct and send DNS queries, specify the query type (e.g., A, AAAA, MX).
[] Category: | Name: dns_query
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 resource records being queried. See RFC1035. For example: IN.
recommended
hostname: Option<String>Hostname
The hostname or domain being queried. For example: www.example.com
required
opcode: Option<String>DNS Opcode
The DNS opcode specifies the type of the query message.
optional
opcode_id: Option<i64>DNS Opcode ID
The DNS opcode ID specifies the normalized query message type as defined in RFC-5395.
recommended
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
type: Option<String>Resource Record Type
The type of resource records being queried. See RFC1035. For example: A, AAAA, CNAME, MX, and NS.
recommended