DoHAnswer class
DNS answer record
Represents a single response record from DNS query, including domain name, type, TTL and data
Constructors
Properties
- data → String
-
Record data (IP address, domain name, etc.)
final
- dataLength → int?
-
Record length (bytes)
final
- dnsClass → int
-
DNS class (usually IN=1)
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isExpired → bool
-
Check if record has expired
no setter
- isValid → bool
-
Check if it's a valid record
no setter
- name ↔ String
-
Domain name
getter/setter pair
- provider ↔ Uri?
-
DoH server that provided this record
getter/setter pair
- remainingTtl → int
-
Get remaining TTL (seconds)
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- ttl → int
-
Time to live (seconds)
final
- type → int
-
DNS record type
final
- typeName → String
-
Get record type name
no setter
- validUntil ↔ int
-
Record expiration timestamp (milliseconds)
getter/setter pair
Methods
-
matches(
String queryName, int queryType) → bool - Check if record matches specified query
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshValidUntil(
) → void - Refresh expiration time (recalculate validUntil)
-
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