{"id":28539362,"url":"https://github.com/yourtion/httpdns-oc","last_synced_at":"2025-07-08T10:32:56.257Z","repository":{"id":56913973,"uuid":"54782330","full_name":"yourtion/HTTPDNS-OC","owner":"yourtion","description":"HTTPDNS 库 Objdctive-C 实现（使用DNSPod 、AliyunDNS、 Google ...）","archived":false,"fork":false,"pushed_at":"2016-12-15T06:06:30.000Z","size":67,"stargazers_count":34,"open_issues_count":1,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-09T18:49:18.861Z","etag":null,"topics":["aliyun-httpdns","carthage","dns-over-https","dnspod","httpdns"],"latest_commit_sha":null,"homepage":"http://cocoapods.org/pods/HTTPDNS","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yourtion.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-26T14:19:17.000Z","updated_at":"2023-01-16T03:13:47.000Z","dependencies_parsed_at":"2022-08-21T03:20:36.019Z","dependency_job_id":null,"html_url":"https://github.com/yourtion/HTTPDNS-OC","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/yourtion/HTTPDNS-OC","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2FHTTPDNS-OC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2FHTTPDNS-OC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2FHTTPDNS-OC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2FHTTPDNS-OC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yourtion","download_url":"https://codeload.github.com/yourtion/HTTPDNS-OC/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2FHTTPDNS-OC/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264250601,"owners_count":23579544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aliyun-httpdns","carthage","dns-over-https","dnspod","httpdns"],"created_at":"2025-06-09T18:31:38.963Z","updated_at":"2025-07-08T10:32:56.244Z","avatar_url":"https://github.com/yourtion.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTPDNS\n\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Version](https://img.shields.io/cocoapods/v/HTTPDNS.svg?style=flat)](http://cocoapods.org/pods/HTTPDNS)\n[![License](https://img.shields.io/cocoapods/l/HTTPDNS.svg?style=flat)](http://cocoapods.org/pods/HTTPDNS)\n[![Platform](https://img.shields.io/cocoapods/p/HTTPDNS.svg?style=flat)](http://cocoapods.org/pods/HTTPDNS)\n[![Build Status](https://travis-ci.org/yourtion/HTTPDNS-OC.svg?branch=master)](https://travis-ci.org/yourtion/HTTPDNS-OC)\n\nHTTPDNS 库 Objdctive-C 实现。\n\n支持 DNSPod、DNSPod 企业版、AliYunDNS、Google 等（方便扩展）\n\n## 安装\n\n### CocoaPod\n\n在 `Podfile` 中添加：\n\n```\nplatform :ios, '8.0'\n\npod 'HTTPDNS'\n```\n\n### Carthage\n\n```\ngithub \"yourtion/HTTPDNS-OC\"\n```\n\n## 使用方法\n\n### 解析域名\n\n```objc\n#import \u003cHTTPDNS/HTTPDNS.h\u003e\n\n// 解析记录\n[[HTTPDNSClient sharedInstance] getRecord:@\"www.taobao.com\" callback:^(HTTPDNSRecord *record) {\n\tNSLog(@\"IP : %@\", record.ip);\n   NSLog(@\"description : %@\", record.description);\n}];\n\n// 清除缓存\n[[HTTPDNSClient sharedInstance] cleanAllCache];\n```\n\n### 切换 HTTPDNS 服务提供方\n\n```objc\n// 使用 DNSPod\n[[HTTPDNSClient sharedInstance] useDNSPod];\n\n// 使用 DNSPod 企业版\n[[HTTPDNSClient sharedInstance] useDNSPodProWithAccount:@\"Your DNSPod pro accound id\" Key:@\"Your DNSPod pro key\"];\n\n// 使用阿里云 HTTPDNS\n[[HTTPDNSClient sharedInstance] useAliYunWithKey:@\"Your Aliyun HTTPNDS accound id\"];\n\n// 使用 Google DNS-over-HTTP\n[[HTTPDNSClient sharedInstance] useGoogle];\n```\n\n## TODO\n\n- [x] 实现 DNSPod 免费版功能\n- [x] 实现 DNSPod 企业版功能（认证接入）\n- [x] 实现 AliYun HTTPDNS\n- [x] 实现 AliYun HTTPDNS With HTTPS\n- [x] 实现 Google DNS-over-HTTP\n- [x] 提供清除缓存方法\n- [ ] 提供自定义解析器方法\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyourtion%2Fhttpdns-oc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyourtion%2Fhttpdns-oc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyourtion%2Fhttpdns-oc/lists"}