Public DNS provides a blacklist and whitelist feature to control which domain names the service resolves.
Use cases
Public DNS, which includes HTTPDNS, is ideal for mobile clients such as applications and IoT devices. When you use Public DNS, resolution requests bypass the ISP's Local DNS, which helps prevent application hijacking. The service also identifies the client's source IP address to improve scheduling accuracy and accelerate domain name resolution.
How it works
Public DNS provides a blacklist and whitelist feature that supports bulk operations. The resolution logic is as follows:
1. If both the whitelist and the blacklist are empty, all domain names are resolved.
2. If only a whitelist is configured, only domain names on the whitelist are resolved, while all other domain names are blocked.
3. If only a blacklist is configured, only domain names on the blacklist are blocked, while other domain names are resolved.
4. If both a whitelist and a blacklist are configured, the blacklist takes precedence. A domain name on the blacklist is always blocked, even if it is also on the whitelist. A domain name that is on the whitelist but not on the blacklist is resolved. All other domain names are blocked.