Please consult the documentation for more information on DNS clients.
The client is thread safe and can be used from any thread.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Future | |
| public DnsClient | Returns: a reference to this, so the API can be used fluentlythe name to resolve name, Handler<AsyncResult<@Nullable String>> the handler)io. to notify with the io..
The handler will get notified with the resolved address if a record was found. If non was found it
will get notifed with null. If an error accours it will get failed.Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name. |
| public Future | |
| public DnsClient | Returns: a reference to this, so the API can be used fluentlythe name to resolve name, Handler<AsyncResult<@Nullable String>> the handler)Handler to notify with the io..
The handler will get notified with the resolved java. if a record was found.
If non was found it will get notifed with null. If an error accours it will get failed.Try to lookup the A (ipv4) record for the given name. |
| public Future | |
| public DnsClient | Returns: a reference to this, so the API can be used fluentlythe name to resolve name, Handler<AsyncResult<@Nullable String>> the handler)Handler to notify with the AsyncResult. The handler will get
notified with the resolved java. if a record was found. If non was found
it will get notifed with null. If an error accours it will get failed.Try to lookup the AAAA (ipv6) record for the given name. |
| public Future | |
| public DnsClient | Returns: a reference to this, so the API can be used fluentlythe name to resolve name, Handler<AsyncResult<List<String>>> the handler)io. to notify with the io..
The handler will get notified with a java. that contains all the resolved
java.es. If none was found an empty java. will be used.
If an error accours it will get failed.Try to resolve all A (ipv4) records for the given name. |
| public Future | |
| public DnsClient | Returns: a reference to this, so the API can be used fluentlythe name to resolve name, Handler<AsyncResult<List<String>>> the handler)io. to notify with the io..
The handler will get notified with a java. that contains all the resolved
java.es. If none was found an empty java. will be used.
If an error accours it will get failed.Try to resolve all AAAA (ipv6) records for the given name. |
| public Future | resolveAAAA(String name)
Like |
| public DnsClient | Returns: a reference to this, so the API can be used fluently.the name to resolve the CNAME for name, Handler<AsyncResult<List<String>>> the handler)Handler to notify with the AsyncResult. The handler will get
notified with the resolved String if a record was found. If none was found it will
get notified with null. If an error accours it will get failed.Try to resolve the CNAME record for the given name. |
| public Future | resolveCNAME(String name)
Like |
| public DnsClient | Returns: a reference to this, so the API can be used fluently.the name for which the MX records should be resolved name, Handler<AsyncResult<List<MxRecord>>> the handler)io. to notify with the io..
The handler will get notified with a List that contains all resolved MxRecords, sorted by
their MxRecord#priority(). If non was found it will get notified with an empty
java.. If an error accours it will get failed.Try to resolve the MX records for the given name. |
| public Future | resolveMX(String name)
Like |
| public DnsClient | Returns: a reference to this, so the API can be used fluently.the name for which the NS records should be resolved name, Handler<AsyncResult<List<String>>> the handler)Handler to notify with the AsyncResult. The handler will get
notified with a List that contains all resolved Strings. If none was found it will
get notified with an empty java.. If an error accours it will get failed.Try to resolve the NS records for the given name. |
| public Future | resolveNS(String name)
Like |
| public DnsClient | Returns: a reference to this, so the API can be used fluently.the name to resolve the PTR for name, Handler<AsyncResult<@Nullable String>> the handler)Handler to notify with the AsyncResult. The handler will get
notified with the resolved String if a record was found. If none was found it will
get notified with null. If an error accours it will get failed.Try to resolve the PTR record for the given name. |
| public Future | resolvePTR(String name)
Like |
| public DnsClient | Returns: a reference to this, so the API can be used fluently.the name for which the SRV records should be resolved name, Handler<AsyncResult<List<SrvRecord>>> the handler)Handler to notify with the AsyncResult. The handler will get
notified with a List that contains all resolved SrvRecords. If none was found it will
get notified with an empty java.. If an error accours it will get failed.Try to resolve the SRV records for the given name. |
| public Future | resolveSRV(String name)
Like |
| public DnsClient | Returns: a reference to this, so the API can be used fluently.the name for which the TXT records should be resolved name, Handler<AsyncResult<List<String>>> the handler)Handler to notify with the AsyncResult. The handler will get
notified with a List that contains all resolved Strings. If none was found it will
get notified with an empty java.. If an error accours it will get failed.Try to resolve the TXT records for the given name. |
| public Future | resolveTXT(String name)
Like |
| public DnsClient | Returns: a reference to this, so the API can be used fluently.the IP address to resolve the PTR for ipaddress, Handler<AsyncResult<@Nullable String>> the handler)Handler to notify with the AsyncResult. The handler will get
notified with the resolved String if a record was found. If none was found it will
get notified with null. If an error accours it will get failed.Try to do a reverse lookup of an IP address. |
| public Future | reverseLookup(String ipaddress)
Like |
| close | back to summary |
|---|---|
| public void close(Handler<AsyncResult<Void>> handler) Close the client. | |
| close | back to summary |
|---|---|
| public Future Like | |
| lookup | back to summary |
|---|---|
| public DnsClient lookup(String name, Handler<AsyncResult<@Nullable String>> handler) Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name. The first found will be used.
| |
| lookup | back to summary |
|---|---|
| public Future Like | |
| lookup4 | back to summary |
|---|---|
| public DnsClient lookup4(String name, Handler<AsyncResult<@Nullable String>> handler) Try to lookup the A (ipv4) record for the given name. The first found will be used.
| |
| lookup4 | back to summary |
|---|---|
| public Future Like | |
| lookup6 | back to summary |
|---|---|
| public DnsClient lookup6(String name, Handler<AsyncResult<@Nullable String>> handler) Try to lookup the AAAA (ipv6) record for the given name. The first found will be used.
| |
| lookup6 | back to summary |
|---|---|
| public Future Like | |
| resolveA | back to summary |
|---|---|
| public DnsClient resolveA(String name, Handler<AsyncResult<List<String>>> handler) Try to resolve all A (ipv4) records for the given name.
| |
| resolveA | back to summary |
|---|---|
| public Future Like | |
| resolveAAAA | back to summary |
|---|---|
| public DnsClient resolveAAAA(String name, Handler<AsyncResult<List<String>>> handler) Try to resolve all AAAA (ipv6) records for the given name.
| |
| resolveAAAA | back to summary |
|---|---|
| public Future Like | |
| resolveCNAME | back to summary |
|---|---|
| public DnsClient resolveCNAME(String name, Handler<AsyncResult<List<String>>> handler) Try to resolve the CNAME record for the given name.
| |
| resolveCNAME | back to summary |
|---|---|
| public Future Like | |
| resolveMX | back to summary |
|---|---|
| public DnsClient resolveMX(String name, Handler<AsyncResult<List<MxRecord>>> handler) Try to resolve the MX records for the given name.
| |
| resolveMX | back to summary |
|---|---|
| public Future Like | |
| resolveNS | back to summary |
|---|---|
| public DnsClient resolveNS(String name, Handler<AsyncResult<List<String>>> handler) Try to resolve the NS records for the given name.
| |
| resolveNS | back to summary |
|---|---|
| public Future Like | |
| resolvePTR | back to summary |
|---|---|
| public DnsClient resolvePTR(String name, Handler<AsyncResult<@Nullable String>> handler) Try to resolve the PTR record for the given name.
| |
| resolvePTR | back to summary |
|---|---|
| public Future Like | |
| resolveSRV | back to summary |
|---|---|
| public DnsClient resolveSRV(String name, Handler<AsyncResult<List<SrvRecord>>> handler) Try to resolve the SRV records for the given name.
| |
| resolveSRV | back to summary |
|---|---|
| public Future Like | |
| resolveTXT | back to summary |
|---|---|
| public DnsClient resolveTXT(String name, Handler<AsyncResult<List<String>>> handler) Try to resolve the TXT records for the given name.
| |
| resolveTXT | back to summary |
|---|---|
| public Future Like | |
| reverseLookup | back to summary |
|---|---|
| public DnsClient reverseLookup(String ipaddress, Handler<AsyncResult<@Nullable String>> handler) Try to do a reverse lookup of an IP address. This is basically the same as doing trying to resolve a PTR record but allows you to just pass in the IP address and not a valid ptr query string.
| |
| reverseLookup | back to summary |
|---|---|
| public Future Like | |