DnsOptions constructor

const DnsOptions({
  1. DnsProviderPreset providerPreset = DnsProviderPreset.custom,
  2. String remoteDns = 'https://1.1.1.1/dns-query',
  3. String remoteDomainStrategy = 'auto',
  4. String directDns = 'local',
  5. String directDomainStrategy = 'auto',
  6. bool enableDnsRouting = true,
  7. bool enableFakeIp = false,
  8. String fakeIpInet4Range = '198.18.0.0/15',
  9. String fakeIpInet6Range = 'fc00::/18',
  10. bool enableDohFallback = true,
  11. String dohFallbackDns = 'https://dns.google/dns-query',
  12. 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',
  ],
});