Callback

interface Callback

Callback to receive results from the DNS Queries.

Functions

Link copied to clipboard
abstract fun onFailure(hostname: String, e: IOException)

Returns an error for the DNS query.

Link copied to clipboard
abstract fun onResponse(hostname: String, addresses: List<InetAddress>)

Return addresses for a dns query for a single class of IPv4 (A) or IPv6 (AAAA). May be an empty list indicating that the host is unreachable.