public class DnsOverHttps extends java.lang.Object implements 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 and Description |
---|---|
static class |
DnsOverHttps.Builder |
Modifier and Type | Field and Description |
---|---|
static MediaType |
DNS_MESSAGE |
static int |
MAX_RESPONSE_SIZE |
Modifier and Type | Method and Description |
---|---|
OkHttpClient |
client() |
boolean |
includeIPv6() |
java.util.List<java.net.InetAddress> |
lookup(java.lang.String hostname) |
boolean |
post() |
boolean |
resolvePrivateAddresses() |
boolean |
resolvePublicAddresses() |
HttpUrl |
url() |
public static final MediaType DNS_MESSAGE
public static final int MAX_RESPONSE_SIZE
public HttpUrl url()
public boolean post()
public boolean includeIPv6()
public OkHttpClient client()
public boolean resolvePrivateAddresses()
public boolean resolvePublicAddresses()
Copyright © 2019. All Rights Reserved.