DnsOptions class
DnsOptions model.
Constructors
-
DnsOptions({DnsProviderPreset providerPreset = DnsProviderPreset.custom, String remoteDns = 'https://1.1.1.1/dns-query', String remoteDomainStrategy = 'auto', String directDns = 'local', String directDomainStrategy = 'auto', bool enableDnsRouting = true, bool enableFakeIp = false, String fakeIpInet4Range = '198.18.0.0/15', String fakeIpInet6Range = 'fc00::/18', bool enableDohFallback = true, String dohFallbackDns = 'https://dns.google/dns-query', List<
String> dohFallbackDomainSuffixes = const <String>['cp.cloudflare.com', 'connectivitycheck.gstatic.com', 'gstatic.com', 'googleapis.com']}) -
const
- DnsOptions.fromMap(dynamic raw)
-
Creates an instance from a dynamic map.
factory
-
DnsOptions.fromProvider({required DnsProviderPreset preset, String remoteDomainStrategy = 'auto', String directDomainStrategy = 'auto', bool enableDnsRouting = true, bool enableFakeIp = false, String fakeIpInet4Range = '198.18.0.0/15', String fakeIpInet6Range = 'fc00::/18', bool enableDohFallback = true, String dohFallbackDns = 'https://dns.google/dns-query', List<
String> dohFallbackDomainSuffixes = const <String>['cp.cloudflare.com', 'connectivitycheck.gstatic.com', 'gstatic.com', 'googleapis.com'], String? remoteDnsOverride, String? directDnsOverride}) -
Creates an instance from a dynamic map.
factory
Properties
- directDns → String
-
Documented field.
final
- directDomainStrategy → String
-
Documented field.
final
- dohFallbackDns → String
-
Documented field.
final
-
dohFallbackDomainSuffixes
→ List<
String> -
Documented field.
final
- enableDnsRouting → bool
-
Documented field.
final
- enableDohFallback → bool
-
Documented field.
final
- enableFakeIp → bool
-
Documented field.
final
- fakeIpInet4Range → String
-
Documented field.
final
- fakeIpInet6Range → String
-
Documented field.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- providerPreset → DnsProviderPreset
-
Documented field.
final
- remoteDns → String
-
Documented field.
final
- remoteDomainStrategy → String
-
Documented field.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> - Serializes this object to a map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited