Skip to content

okhttp-dnsoverhttps / okhttp3.dnsoverhttps / DnsOverHttps

DnsOverHttps

class DnsOverHttps : Dns

DNS over HTTPS implementation.

A DNS API client encodes a single DNS query into an HTTP request using either the HTTP GET or POST method and the other requirements of this section. The DNS API server defines the URI used by the request through the use of a URI Template.

Warning: This is a non-final API.

As of OkHttp 3.14, this feature is an unstable preview: the API is subject to change, and the implementation is incomplete. We expect that OkHttp 4.0 or 4.1 will finalize this API. Until then, expect API and behavior changes when you update your OkHttp dependency.**

Types

Name Summary
Builder class Builder

Properties

Name Summary
client val client: OkHttpClient
includeIPv6 val includeIPv6:Boolean
post val post:Boolean
resolvePrivateAddresses val resolvePrivateAddresses:Boolean
resolvePublicAddresses val resolvePublicAddresses:Boolean
url val url: HttpUrl

Functions

Name Summary
lookup fun lookup(hostname:String):List<InetAddress>

Companion Object Properties

Name Summary
DNS_MESSAGE val DNS_MESSAGE: MediaType
MAX_RESPONSE_SIZE const val MAX_RESPONSE_SIZE:Int