DnsOptions constructor
const
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'],
Implementation
const DnsOptions({
this.providerPreset = DnsProviderPreset.custom,
this.remoteDns = 'https://1.1.1.1/dns-query',
this.remoteDomainStrategy = 'auto',
this.directDns = 'local',
this.directDomainStrategy = 'auto',
this.enableDnsRouting = true,
this.enableFakeIp = false,
this.fakeIpInet4Range = '198.18.0.0/15',
this.fakeIpInet6Range = 'fc00::/18',
this.enableDohFallback = true,
this.dohFallbackDns = 'https://dns.google/dns-query',
this.dohFallbackDomainSuffixes = const <String>[
'cp.cloudflare.com',
'connectivitycheck.gstatic.com',
'gstatic.com',
'googleapis.com',
],
});