AsyncDns¶
[jvm]\ interface AsyncDns
An async domain name service that resolves IP addresses for host names.
The main implementations will typically be implemented using specific DNS libraries such as
- Android DnsResolver
- OkHttp DnsOverHttps
- dnsjava Resolver
Implementations of this interface must be safe for concurrent use.
Types¶
Name | Summary |
---|---|
Callback | [jvm] interface Callback Callback to receive results from the DNS Queries. |
Companion | [jvm] object Companion |
DnsClass | [jvm] enum DnsClass : Enum<AsyncDns.DnsClass> Class of DNS addresses, such that clients that treat these differently, such as attempting IPv6 first, can make such decisions. |
Functions¶
Name | Summary |
---|---|
query | [jvm] abstract fun query(hostname: String, callback: AsyncDns.Callback) Query DNS records for hostname , in the order they are received. |