DoHQuestion class

DNS query question

Represents a query request sent from client to DNS server

Constructors

DoHQuestion({String name = '', int type = 0, int dnsClass = 1})
Create DNS question instance
const
DoHQuestion.fromJson(Map<String, dynamic> json)
Create DNS question from JSON
factory

Properties

dnsClass int
DNS class (usually IN=1 for Internet)
final
hashCode int
The hash code for this object.
no setteroverride
isValid bool
Check if it's a valid question
no setter
name String
Query domain name
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type int
DNS record type (e.g., A=1, AAAA=28, etc.)
final
typeName String
Get record type name
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert to JSON
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override