HappyDns alternatives and similar packages
Based on the "Network" category.
Alternatively, view HappyDns alternatives based on common mentions on social networks and blogs.
-
android-async-http
An asynchronous, callback-based Http client for Android built on top of Apache's HttpClient libraries. -
AndroidAsync
Asynchronous socket, http(s) (client+server) and websocket library for android. Based on nio, not threads. -
robospice
DISCONTINUED. Repo of the Open Source Android library : RoboSpice. RoboSpice is a modular android library that makes writing asynchronous long running tasks easy. It is specialized in network requests, supports caching and offers REST requests out-of-the box using extension modules. -
android-lite-http
LiteHttp is a simple, intelligent and flexible HTTP framework for Android. With LiteHttp you can make HTTP request with only one line of code! It could convert a java model to the parameter and rander the response JSON as a java model intelligently. -
Minimized API Service Library
Minimized API library which is used call the server request in andorid.
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of HappyDns or a related project?
README
Qiniu Happy DNS for Android
安装
直接安装
通过maven
使用方法
DnsManager 可以创建一次,一直使用。
IResolver[] resolvers = new IResolver[3];
resolvers[0] = AndroidDnsServer.defaultResolver(getContext()); //系统默认 DNS 服务器
resolvers[1] = new Resolver(InetAddress.getByName("119.29.29.29")); //自定义 DNS 服务器地址
resolvers[2] = new QiniuDns(accountId, encryptKey, expireTimeMs); //七牛 http dns 服务
DnsManager dns = new DnsManager(NetworkInfo.normal(), resolvers);
其中,七牛 http dns 服务所需的参数如下:
参数 | 描述 |
---|---|
accountId | 账户名称,从七牛控制台获取 |
encryptKey | 加密所需的 key,从七牛控制台获取 |
expireTimeSecond | Unix 时间戳,单位为秒,该时间后请求过期 |
QiniuDns
提供了 setHttps
与 setEncrypted
两个方法,用于设置是否启用 SSL,与请求的 URL 是否加密。
测试
$ ./gradlew connectedAndroidTest
运行环境
Android 最低要求 2.3
代码贡献
详情参考代码提交指南。
贡献记录
联系我们
- 如果需要帮助,请提交工单(在portal右侧点击咨询和建议提交工单,或者直接向 [email protected] 发送邮件)
- 如果有什么问题,可以到问答社区提问,问答社区
- 如果发现了bug, 欢迎提交 issue
- 如果有功能需求,欢迎提交 issue
- 如果要提交代码,欢迎提交 pull request
- 欢迎关注我们的微信 微博,及时获取动态信息。
常见问题
- 如果软件有国外的使用情况时,建议初始化程序采取这样的方式,下面代码只是根据时区做简单判断,开发者可以根据自己需要使用更精确的判断方式
DnsManager dns;
if(DnsManager.needHttpDns()){
IResolver[] resolvers = new IResolver[2];
resolvers[0] = new DnspodFree();
resolvers[1] = AndroidDnsServer.defaultResolver(getContext());
dns = new DnsManager(NetworkInfo.normal, resolvers);
}else{
IResolver[] resolvers = new IResolver[2];
resolvers[0] = AndroidDnsServer.defaultResolver(getContext());
resolvers[1] = new Resolver(InetAddress.getByName("8.8.8.8"));
dns = new DnsManager(NetworkInfo.normal, resolvers);
}
代码许可
The MIT License (MIT).详情见 License文件.
*Note that all licence references and agreements mentioned in the HappyDns README section above
are relevant to that project's source code only.