Skip to content

Commit

Permalink
修正 ReadMe 文档 关于 dnsManager使用示例
Browse files Browse the repository at this point in the history
  • Loading branch information
Mei-Zhao authored Sep 2, 2021
1 parent 4ee6eef commit 80ae0f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pod "HappyDNS"
[array addObject:[[QNResolver alloc] initWithAddress:@"119.29.29.29"]];
[array addObject:[QNDohResolver resolverWithServer:@"https://dns.alidns.com/dns-query"]];
QNDnsManager *dns = [[QNDnsManager alloc] init:array networkInfo:[QNNetworkInfo normal]];
NSArray *ips = [dns query:@"www.qiniu.com"];
NSArray <QNRecord *> *records = [dns queryRecords:@"www.qiniu.com"];;
```
* url 请求,返回一个IP 替换URL 里的domain
```
Expand Down

0 comments on commit 80ae0f8

Please sign in to comment.