okhttp3.Dnspublic class DnsOverHttps
extends java.lang.Object
implements okhttp3.Dns
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.
As of OkHttp 3.11, this feature is an unstable preview: the API is subject to change, and the implementation is incomplete. We expect that OkHttp 3.12 or 3.13 will finalize this API. Until then, expect API and behavior changes when you update your OkHttp dependency.
| Modifier and Type | Class | Description |
|---|---|---|
static class |
DnsOverHttps.Builder |
| Modifier and Type | Field | Description |
|---|---|---|
static okhttp3.MediaType |
DNS_MESSAGE |
|
static int |
MAX_RESPONSE_SIZE |
| Modifier and Type | Method | Description |
|---|---|---|
okhttp3.OkHttpClient |
client() |
|
boolean |
includeIPv6() |
|
java.util.List<java.net.InetAddress> |
lookup(java.lang.String hostname) |
|
boolean |
post() |
|
boolean |
resolvePrivateAddresses() |
|
boolean |
resolvePublicAddresses() |
|
okhttp3.HttpUrl |
url() |
public static final okhttp3.MediaType DNS_MESSAGE
public static final int MAX_RESPONSE_SIZE
public okhttp3.HttpUrl url()
public boolean post()
public boolean includeIPv6()
public okhttp3.OkHttpClient client()
public boolean resolvePrivateAddresses()
public boolean resolvePublicAddresses()
public java.util.List<java.net.InetAddress> lookup(java.lang.String hostname)
throws java.net.UnknownHostException
lookup in interface okhttp3.Dnsjava.net.UnknownHostExceptionCopyright © 2020. All Rights Reserved.