DoHProvider class

DoH Service Providers

Defines endpoint URLs for popular DNS over HTTPS service providers

Constructors

DoHProvider()

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

adguard Uri
AdGuard DNS - 94.140.14.14 DNS with ad blocking features
final
alidns Uri
Alibaba Public DNS - 223.5.5.5 Optimized for China mainland, supports ECS
final
alidns2 Uri
Alibaba Public DNS - 223.6.6.6 Backup endpoint
final
allProviders List<Uri>
Get all available providers
no setter
chinaDirectProviders List<Uri>
Get China mainland accessible providers (direct connection without proxy)
no setter
chinaOptimizedProviders List<Uri>
Get China mainland optimized providers (try direct first, then proxy)
no setter
chinaProxyProviders List<Uri>
Get providers that require proxy access in China mainland
no setter
cloudflare1 Uri
Cloudflare Public DNS - 1.1.1.1 High-performance, privacy-focused DNS service
final
cloudflare2 Uri
Cloudflare Public DNS - 1.0.0.1 Backup endpoint
final
dnssb Uri
DNS.SB - 185.222.222.222 Decentralized DNS service
final
google1 Uri
Google Public DNS - 8.8.8.8 Supports JSON API format
final
google2 Uri
Google Public DNS - 8.8.4.4 Supports JSON API format
final
opendns1 Uri
OpenDNS - 208.67.222.222 Enterprise-grade DNS service
final
opendns2 Uri
OpenDNS - 208.67.220.220 Backup endpoint
final
quad9 Uri
Quad9 - 9.9.9.9:5053 DNS service with malware blocking features
final
recommendedProviders List<Uri>
Get recommended providers (balanced performance and reliability)
no setter
tw101 Uri
Taiwan Network Information Center TWNIC - 101.101.101.101 https://101.101.101.101/dns-query
final