如何使用iOS SDK获取所有DNS记录 [英] How to get All DNS records with iOS SDK
问题描述
我正在寻找这么长时间才能获得有关使用iOS SDK获取DNS记录的解决方案???
i am looking for so long to get a solution regarding getting DNS records by using iOS SDK???
我能够根据主机名解析ip addesses < a href =https://stackoverflow.com/questions/5000441/how-to-perform-dns-query-on-ios>这里但这不是我想要的...我需要得到所有DNS记录包括 PTR ,名称, NS , MX , CNAME 等。非常感谢你的帮助或代码片段
i am able to resolve ip addesses against host name here but that is not what i want... i need to get all DNS records including PTR, Name, NS, MX, CNAME etc.. please your help or a code snippet is very much appreciated
推荐答案
尝试探索
DNSServiceErrorType DNSSD_API DNSServiceQueryRecord
(
DNSServiceRef *sdRef,
DNSServiceFlags flags,
uint32_t interfaceIndex,
const char *fullname,
uint16_t rrtype,
uint16_t rrclass,
DNSServiceQueryRecordReply callBack,
void *context /* may be NULL */
);
来自
#include <dns_util.h>
我实际上已经使用此函数为所有类型的DNS记录编写了我的objective-c包装器。我无法抽出时间将它发布到某个地方
I have actually written my objective-c wrapper using this function for all kinds of DNS records..but i cant get time to publish it somewhere
这篇关于如何使用iOS SDK获取所有DNS记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!