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). Defined by D3FEND d3f:DNSLookup.
- Extends:
_dns
Attributes
Section titled “Attributes”hostname
- Type:
hostname_t - Requirement: required
The hostname or domain being queried. For example: www.example.com
class
- Type:
string_t - Requirement: recommended
The class of resource records being queried. See RFC1035. For example: IN.
opcode_id
- Type:
integer_t - Requirement: recommended
- Values:
0-Query: Standard query1-Inverse Query: Inverse query, obsolete2-Status: Server status request3-Reserved: Reserved, not used4-Notify: Zone change notification5-Update: Dynamic DNS update6-DSO Message: DNS Stateful Operations (DSO)99-Other: The DNS Opcode is not defined by the RFC. See theopcodeattribute, which contains a data source specific value.
The DNS opcode ID specifies the normalized query message type as defined in RFC-5395.
packet_uid
- Type:
integer_t - Requirement: recommended
The DNS packet identifier assigned by the program that generated the query. The identifier is copied to the response.
type
- Type:
string_t - Requirement: recommended
The type of resource records being queried. See RFC1035. For example: A, AAAA, CNAME, MX, and NS.
opcode
- Type:
string_t - Requirement: optional
The DNS opcode specifies the type of the query message.