Yes, it does. When you call the software development kit (SDK) domain name resolution method, you can select the IP type for resolution. The following example shows the synchronous resolution method. For more information about other resolution methods and SDK versions, see the SDK Developer Guide.
If you do not use an SDK, see the IPv6 Service Scheduling API.
Android:
HttpDnsService httpdns = HttpDns.getService(applicationContext, accountID, secretKey);
HTTPDNSResult httpDnsResult = httpdns.getHttpDnsResultForHostSync("www.aliyun.com", RequestIpType.v6);Note
This method was added in version 2.4.0.
iOS:
HttpDnsService *httpDnsService = [HttpDnsService sharedInstance];
HttpdnsResult *result = [httpDnsService resolveHostSync:host byIpType:HttpdnsQueryIPTypeIpv6];Note
This method was added in version 3.0.0.
Harmony:
httpdns.getService(ACCOUNT_ID).then((service) => {
// ************* Synchronous domain name resolution begin *************
const result = service.getHttpDnsResultSyncNonBlocking(HOST, IpType.V6);
// ************* Synchronous domain name resolution end *************
}).catch((e: HttpDnsError) => {
console.error(`Failed ${e.code} ${e.message}`);
});该文章对您有帮助吗?