DnsOverHttps class
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.
no setterinherited
- maximalPrivacy → bool
-
Whether to hide client IP address from the authoritative server.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration?
-
Default timeout for operations.
final
- url → String
-
URL of the service (without query).
final
Methods
-
close(
{bool force = false}) → void - Shuts down the HTTP client.
-
lookup(
String hostname) → Future< List< InternetAddress> > -
override
-
lookupHttps(
String hostname, {InternetAddressType type = InternetAddressType.any}) → Future< DnsRecord> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited