- Documentation
TrafficRoute DNS Suite
VolcanoEngine HTTPDNS
Client development guide
Use the client SDK
API Reference
iOS SDK
TTDnsResolver class
Method
getDnsResultForHostAsync
Method
getDnsResultForHostAsync
getDnsResultForHostAsync
Definition
(void)getHttpDnsResultForHostWithoutCacheAsync:(NSString*)host callback:(DnsCallback)callback
The definition of the callback function is as follows:
typedef void (^DnsCallback)(TTDnsExportResult* _Nonnull)
Purpose
Initiate a domain name resolution request, but do not block the execution of subsequent application code. When the parsing result is obtained, invoke the callbacks and pass the parsing result.
Parameters
- host: Represents the domain name to be resolved.
- callback: Refers to a callback function whose input parameter is a TTDnsExportResult object containing the parsing result.
Last updated: 2025.11.04 21:10:49