AndroidAsyncDns

@RequiresApi(value = 29)
class AndroidAsyncDns(dnsClass: AsyncDns.DnsClass, network: Network? = null) : AsyncDns

DNS implementation based on android.net.DnsResolver, which submits a request for A or AAAA records, and returns the addresses or exception.

Two instances must be used to get all results for an address.

Parameters

network

network to use, if not selects the default network.

Constructors

Link copied to clipboard
constructor(dnsClass: AsyncDns.DnsClass, network: Network? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun query(hostname: String, callback: AsyncDns.Callback)