A flexible DNS library for Android supporting UDP, DoH, HTTPDNS, and custom hosts.
Qiniu Happy DNS for Android is a DNS library that provides alternative DNS resolution methods for Android applications. It solves the problem of unreliable or slow default DNS by supporting protocols like UDP, DNS-over-HTTPS (DoH), and HTTPDNS, along with custom hosts configuration.
Android developers building network-dependent apps who need more control over DNS resolution for improved reliability, performance, or specific geographic routing.
Developers choose it for its protocol flexibility, ease of integration via a reusable DnsManager, and Qiniu's optimization guidance for international use cases, avoiding vendor lock-in.
dns library for android
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Integrates UDP, DNS-over-HTTPS (DoH), and HTTPDNS resolvers, as shown in the README code example with DnsUdpResolver and DohResolver, providing flexibility beyond system defaults.
Allows rich hosts file configuration for local domain overrides, enabling easy testing and development without modifying system settings.
DnsManager can be initialized once and reused, combining multiple resolvers for fallback, as demonstrated in the usage snippet for reliable query handling.
Includes recommendations for configuring resolvers based on geographic conditions, such as using DoH for overseas users per the FAQ, to improve performance.
Requires manual setup of multiple resolvers and custom logic for geographic optimization, as indicated in the FAQ, which can be error-prone and increase development time.
The README is brief and primarily in Chinese, with sparse examples beyond basic usage, potentially hindering non-Chinese speakers or complex implementations.
The library does not mention support for IPv6 or DNSSEC validation in the README, lacking features critical for modern, security-focused applications.