DoHClient

class DoHClient(val resolverURL: String = DEFAULT_RESOLVER_URL) : Closeable

DNS-over-HTTPS (DoH) client.

Parameters

resolverURL

The URL to the DoH resolver (defaults to Cloudflare)

Constructors

Link copied to clipboard
constructor(resolverURL: String = DEFAULT_RESOLVER_URL)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun close()

Release the underlying resources used by the client.

Link copied to clipboard
suspend fun lookUp(name: String, type: String): Answer

Look up DNS record name of type type.