DnsResolver

Class of android.net · DnsResolver.java · Android's reference

public final class DnsResolver

Name lookups, through the host's resolver; the answer or the error comes on the executor

Nested types

Fields

public static final int CLASS_IN = 1 source
public static final int TYPE_A = 1 source
public static final int TYPE_AAAA = 28 source
public static final int FLAG_EMPTY = 0 source
public static final int FLAG_NO_RETRY = 1 source
public static final int FLAG_NO_CACHE_STORE = 2 source
public static final int FLAG_NO_CACHE_LOOKUP = 4 source
public static final int ERROR_PARSE = 0 source
public static final int ERROR_SYSTEM = 1 source

Methods

public static DnsResolver getInstance() source
public void query(Network network, String domain, int flags, Executor executor, android.os.CancellationSignal cancellationSignal, Callback<? super List<InetAddress>> callback) source
public void query(Network network, String domain, int nsType, int flags, Executor executor, android.os.CancellationSignal cancellationSignal, Callback<? super List<InetAddress>> callback) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.