DnsOverHttps class

Inheritance

Constructors

DnsOverHttps(String url, {Duration timeout = const Duration(milliseconds: 5000), bool maximalPrivacy = false})
DnsOverHttps.cloudflare({Duration timeout})
factory
DnsOverHttps.google({Duration timeout})
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
maximalPrivacy bool
Whether to hide client IP address from the authoritative server.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
timeout Duration
Default timeout for operations.
final
url String
URL of the service (without query).
final

Methods

lookup(String hostname) Future<List<InternetAddress>>
override
lookupHttps(String hostname, {InternetAddressType type = InternetAddressType.any}) Future<DnsRecord>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited