https://github.com/dnspod/httpdns-sdk-ios
iOS 平台 httpdns sdk 源码
https://github.com/dnspod/httpdns-sdk-ios
Last synced: 10 months ago
JSON representation
iOS 平台 httpdns sdk 源码
- Host: GitHub
- URL: https://github.com/dnspod/httpdns-sdk-ios
- Owner: DNSPod
- License: apache-2.0
- Created: 2021-04-09T02:56:18.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-13T07:27:46.000Z (over 1 year ago)
- Last Synced: 2025-04-09T05:26:22.628Z (about 1 year ago)
- Language: Objective-C
- Size: 449 KB
- Stars: 34
- Watchers: 6
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# HTTPDNS SDK iOS
## 原理介绍
HttpDNS服务的详细介绍可以参见文章[全局精确流量调度新思路-HttpDNS服务详解](https://cloud.tencent.com/developer/article/1035562)。 总的来说,HttpDNS作为移动互联网时代DNS优化的一个通用解决方案,主要解决了以下几类问题:
- LocalDNS劫持/故障
- LocalDNS调度不准确
HttpDNS 的 SDK,主要提供了基于HttpDNS服务的域名解析和缓存管理能力:
- SDK在进行域名解析时,优先通过HttpDNS服务得到域名解析结果,极端情况下如果HttpDNS服务不可用,则使用LocalDNS解析结果
- HttpDNS服务返回的域名解析结果会携带相关的TTL信息,SDK会使用该信息进行HttpDNS解析结果的缓存管理
## 接入指南
**请参阅文档[HTTPDNS iOS客户端接入文档](https://cloud.tencent.com/document/product/379/17669)**