io.vertx.rxjava.core.dns

## Class DnsClient

- java.lang.Object
- - io.vertx.rxjava.core.dns.DnsClient

-     public class DnsClient
      extends Object

  Provides a way to asynchronously lookup information from DNS servers.

  Please consult the documentation for more information on DNS clients.

  NOTE: This class has been automatically generated from the `original` non RX-ified interface using Vert.x codegen.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static TypeArg<DnsClient>` | `__TYPE_ARG`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DnsClient(DnsClient delegate)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `DnsClient` | `getDelegate()`
    `DnsClient` | `lookup(String name, Handler<AsyncResult<String>> handler)` Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name.
    `DnsClient` | `lookup4(String name, Handler<AsyncResult<String>> handler)` Try to lookup the A (ipv4) record for the given name.
    `rx.Observable<String>` | `lookup4Observable(String name)` Deprecated. use `rxLookup4(java.lang.String)` instead
    `DnsClient` | `lookup6(String name, Handler<AsyncResult<String>> handler)` Try to lookup the AAAA (ipv6) record for the given name.
    `rx.Observable<String>` | `lookup6Observable(String name)` Deprecated. use `rxLookup6(java.lang.String)` instead
    `rx.Observable<String>` | `lookupObservable(String name)` Deprecated. use `rxLookup(java.lang.String)` instead
    `static DnsClient` | `newInstance(DnsClient arg)`
    `DnsClient` | `resolveA(String name, Handler<AsyncResult<List<String>>> handler)` Try to resolve all A (ipv4) records for the given name.
    `DnsClient` | `resolveAAAA(String name, Handler<AsyncResult<List<String>>> handler)` Try to resolve all AAAA (ipv6) records for the given name.
    `rx.Observable<List<String>>` | `resolveAAAAObservable(String name)` Deprecated. use `rxResolveAAAA(java.lang.String)` instead
    `rx.Observable<List<String>>` | `resolveAObservable(String name)` Deprecated. use `rxResolveA(java.lang.String)` instead
    `DnsClient` | `resolveCNAME(String name, Handler<AsyncResult<List<String>>> handler)` Try to resolve the CNAME record for the given name.
    `rx.Observable<List<String>>` | `resolveCNAMEObservable(String name)` Deprecated. use `rxResolveCNAME(java.lang.String)` instead
    `DnsClient` | `resolveMX(String name, Handler<AsyncResult<List<MxRecord>>> handler)` Try to resolve the MX records for the given name.
    `rx.Observable<List<MxRecord>>` | `resolveMXObservable(String name)` Deprecated. use `rxResolveMX(java.lang.String)` instead
    `DnsClient` | `resolveNS(String name, Handler<AsyncResult<List<String>>> handler)` Try to resolve the NS records for the given name.
    `rx.Observable<List<String>>` | `resolveNSObservable(String name)` Deprecated. use `rxResolveNS(java.lang.String)` instead
    `DnsClient` | `resolvePTR(String name, Handler<AsyncResult<String>> handler)` Try to resolve the PTR record for the given name.
    `rx.Observable<String>` | `resolvePTRObservable(String name)` Deprecated. use `rxResolvePTR(java.lang.String)` instead
    `DnsClient` | `resolveSRV(String name, Handler<AsyncResult<List<SrvRecord>>> handler)` Try to resolve the SRV records for the given name.
    `rx.Observable<List<SrvRecord>>` | `resolveSRVObservable(String name)` Deprecated. use `rxResolveSRV(java.lang.String)` instead
    `DnsClient` | `resolveTXT(String name, Handler<AsyncResult<List<String>>> handler)` Try to resolve the TXT records for the given name.
    `rx.Observable<List<String>>` | `resolveTXTObservable(String name)` Deprecated. use `rxResolveTXT(java.lang.String)` instead
    `DnsClient` | `reverseLookup(String ipaddress, Handler<AsyncResult<String>> handler)` Try to do a reverse lookup of an IP address.
    `rx.Observable<String>` | `reverseLookupObservable(String ipaddress)` Deprecated. use `rxReverseLookup(java.lang.String)` instead
    `rx.Single<String>` | `rxLookup(String name)` Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name.
    `rx.Single<String>` | `rxLookup4(String name)` Try to lookup the A (ipv4) record for the given name.
    `rx.Single<String>` | `rxLookup6(String name)` Try to lookup the AAAA (ipv6) record for the given name.
    `rx.Single<List<String>>` | `rxResolveA(String name)` Try to resolve all A (ipv4) records for the given name.
    `rx.Single<List<String>>` | `rxResolveAAAA(String name)` Try to resolve all AAAA (ipv6) records for the given name.
    `rx.Single<List<String>>` | `rxResolveCNAME(String name)` Try to resolve the CNAME record for the given name.
    `rx.Single<List<MxRecord>>` | `rxResolveMX(String name)` Try to resolve the MX records for the given name.
    `rx.Single<List<String>>` | `rxResolveNS(String name)` Try to resolve the NS records for the given name.
    `rx.Single<String>` | `rxResolvePTR(String name)` Try to resolve the PTR record for the given name.
    `rx.Single<List<SrvRecord>>` | `rxResolveSRV(String name)` Try to resolve the SRV records for the given name.
    `rx.Single<List<String>>` | `rxResolveTXT(String name)` Try to resolve the TXT records for the given name.
    `rx.Single<String>` | `rxReverseLookup(String ipaddress)` Try to do a reverse lookup of an IP address.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### __TYPE_ARG

          public static final TypeArg<DnsClient> __TYPE_ARG

  - ### Constructor Detail

    - #### DnsClient

          public DnsClient(DnsClient delegate)

  - ### Method Detail

    - #### getDelegate

          public DnsClient getDelegate()

    - #### lookup

          public DnsClient lookup(String name,
                                  Handler<AsyncResult<String>> handler)

      Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name. The first found will be used.
      Parameters:
        `name` - the name to resolve
        `handler` - the `io.vertx.rxjava.core.Handler` to notify with the `io.vertx.rxjava.core.AsyncResult`. 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.
      Returns:
        a reference to this, so the API can be used fluently

    - #### lookupObservable

          @Deprecated
          public rx.Observable<String> lookupObservable(String name)

      Deprecated. use `rxLookup(java.lang.String)` instead
      Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name. The first found will be used.
      Parameters:
        `name` - the name to resolve
      Returns:

    - #### rxLookup

          public rx.Single<String> rxLookup(String name)

      Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name. The first found will be used.
      Parameters:
        `name` - the name to resolve
      Returns:

    - #### lookup4

          public DnsClient lookup4(String name,
                                   Handler<AsyncResult<String>> handler)

      Try to lookup the A (ipv4) record for the given name. The first found will be used.
      Parameters:
        `name` - the name to resolve
        `handler` - the to notify with the `io.vertx.rxjava.core.AsyncResult`. The handler will get notified with the resolved `Inet4Address` if a record was found. If non was found it will get notifed with `null`. If an error accours it will get failed.
      Returns:
        a reference to this, so the API can be used fluently

    - #### lookup4Observable

          @Deprecated
          public rx.Observable<String> lookup4Observable(String name)

      Deprecated. use `rxLookup4(java.lang.String)` instead
      Try to lookup the A (ipv4) record for the given name. The first found will be used.
      Parameters:
        `name` - the name to resolve
      Returns:

    - #### rxLookup4

          public rx.Single<String> rxLookup4(String name)

      Try to lookup the A (ipv4) record for the given name. The first found will be used.
      Parameters:
        `name` - the name to resolve
      Returns:

    - #### lookup6

          public DnsClient lookup6(String name,
                                   Handler<AsyncResult<String>> handler)

      Try to lookup the AAAA (ipv6) record for the given name. The first found will be used.
      Parameters:
        `name` - the name to resolve
        `handler` - the to notify with the . The handler will get notified with the resolved `Inet6Address` if a record was found. If non was found it will get notifed with `null`. If an error accours it will get failed.
      Returns:
        a reference to this, so the API can be used fluently

    - #### lookup6Observable

          @Deprecated
          public rx.Observable<String> lookup6Observable(String name)

      Deprecated. use `rxLookup6(java.lang.String)` instead
      Try to lookup the AAAA (ipv6) record for the given name. The first found will be used.
      Parameters:
        `name` - the name to resolve
      Returns:

    - #### rxLookup6

          public rx.Single<String> rxLookup6(String name)

      Try to lookup the AAAA (ipv6) record for the given name. The first found will be used.
      Parameters:
        `name` - the name to resolve
      Returns:

    - #### resolveA

          public DnsClient resolveA(String name,
                                    Handler<AsyncResult<List<String>>> handler)

      Try to resolve all A (ipv4) records for the given name.
      Parameters:
        `name` - the name to resolve
        `handler` - the `io.vertx.rxjava.core.Handler` to notify with the `io.vertx.rxjava.core.AsyncResult`. The handler will get notified with a `List` that contains all the resolved `Inet4Address`es. If none was found an empty `List` will be used. If an error accours it will get failed.
      Returns:
        a reference to this, so the API can be used fluently

    - #### resolveAObservable

          @Deprecated
          public rx.Observable<List<String>> resolveAObservable(String name)

      Deprecated. use `rxResolveA(java.lang.String)` instead
      Try to resolve all A (ipv4) records for the given name.
      Parameters:
        `name` - the name to resolve
      Returns:

    - #### rxResolveA

          public rx.Single<List<String>> rxResolveA(String name)

      Try to resolve all A (ipv4) records for the given name.
      Parameters:
        `name` - the name to resolve
      Returns:

    - #### resolveAAAA

          public DnsClient resolveAAAA(String name,
                                       Handler<AsyncResult<List<String>>> handler)

      Try to resolve all AAAA (ipv6) records for the given name.
      Parameters:
        `name` - the name to resolve
        `handler` - the `io.vertx.rxjava.core.Handler` to notify with the `io.vertx.rxjava.core.AsyncResult`. The handler will get notified with a `List` that contains all the resolved `Inet6Address`es. If none was found an empty `List` will be used. If an error accours it will get failed.
      Returns:
        a reference to this, so the API can be used fluently

    - #### resolveAAAAObservable

          @Deprecated
          public rx.Observable<List<String>> resolveAAAAObservable(String name)

      Deprecated. use `rxResolveAAAA(java.lang.String)` instead
      Try to resolve all AAAA (ipv6) records for the given name.
      Parameters:
        `name` - the name to resolve
      Returns:

    - #### rxResolveAAAA

          public rx.Single<List<String>> rxResolveAAAA(String name)

      Try to resolve all AAAA (ipv6) records for the given name.
      Parameters:
        `name` - the name to resolve
      Returns:

    - #### resolveCNAME

          public DnsClient resolveCNAME(String name,
                                        Handler<AsyncResult<List<String>>> handler)

      Try to resolve the CNAME record for the given name.
      Parameters:
        `name` - the name to resolve the CNAME for
        `handler` - the to notify with the . 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.
      Returns:
        a reference to this, so the API can be used fluently.

    - #### resolveCNAMEObservable

          @Deprecated
          public rx.Observable<List<String>> resolveCNAMEObservable(String name)

      Deprecated. use `rxResolveCNAME(java.lang.String)` instead
      Try to resolve the CNAME record for the given name.
      Parameters:
        `name` - the name to resolve the CNAME for
      Returns:

    - #### rxResolveCNAME

          public rx.Single<List<String>> rxResolveCNAME(String name)

      Try to resolve the CNAME record for the given name.
      Parameters:
        `name` - the name to resolve the CNAME for
      Returns:

    - #### resolveMX

          public DnsClient resolveMX(String name,
                                     Handler<AsyncResult<List<MxRecord>>> handler)

      Try to resolve the MX records for the given name.
      Parameters:
        `name` - the name for which the MX records should be resolved
        `handler` - the `io.vertx.rxjava.core.Handler` to notify with the `io.vertx.rxjava.core.AsyncResult`. The handler will get notified with a List that contains all resolved `MxRecord`s, sorted by their `MxRecord.priority()`. If non was found it will get notified with an empty `List`. If an error accours it will get failed.
      Returns:
        a reference to this, so the API can be used fluently.

    - #### resolveMXObservable

          @Deprecated
          public rx.Observable<List<MxRecord>> resolveMXObservable(String name)

      Deprecated. use `rxResolveMX(java.lang.String)` instead
      Try to resolve the MX records for the given name.
      Parameters:
        `name` - the name for which the MX records should be resolved
      Returns:

    - #### rxResolveMX

          public rx.Single<List<MxRecord>> rxResolveMX(String name)

      Try to resolve the MX records for the given name.
      Parameters:
        `name` - the name for which the MX records should be resolved
      Returns:

    - #### resolveTXT

          public DnsClient resolveTXT(String name,
                                      Handler<AsyncResult<List<String>>> handler)

      Try to resolve the TXT records for the given name.
      Parameters:
        `name` - the name for which the TXT records should be resolved
        `handler` - the to notify with the . The handler will get notified with a List that contains all resolved `String`s. If none was found it will get notified with an empty `List`. If an error accours it will get failed.
      Returns:
        a reference to this, so the API can be used fluently.

    - #### resolveTXTObservable

          @Deprecated
          public rx.Observable<List<String>> resolveTXTObservable(String name)

      Deprecated. use `rxResolveTXT(java.lang.String)` instead
      Try to resolve the TXT records for the given name.
      Parameters:
        `name` - the name for which the TXT records should be resolved
      Returns:

    - #### rxResolveTXT

          public rx.Single<List<String>> rxResolveTXT(String name)

      Try to resolve the TXT records for the given name.
      Parameters:
        `name` - the name for which the TXT records should be resolved
      Returns:

    - #### resolvePTR

          public DnsClient resolvePTR(String name,
                                      Handler<AsyncResult<String>> handler)

      Try to resolve the PTR record for the given name.
      Parameters:
        `name` - the name to resolve the PTR for
        `handler` - the to notify with the . 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.
      Returns:
        a reference to this, so the API can be used fluently.

    - #### resolvePTRObservable

          @Deprecated
          public rx.Observable<String> resolvePTRObservable(String name)

      Deprecated. use `rxResolvePTR(java.lang.String)` instead
      Try to resolve the PTR record for the given name.
      Parameters:
        `name` - the name to resolve the PTR for
      Returns:

    - #### rxResolvePTR

          public rx.Single<String> rxResolvePTR(String name)

      Try to resolve the PTR record for the given name.
      Parameters:
        `name` - the name to resolve the PTR for
      Returns:

    - #### resolveNS

          public DnsClient resolveNS(String name,
                                     Handler<AsyncResult<List<String>>> handler)

      Try to resolve the NS records for the given name.
      Parameters:
        `name` - the name for which the NS records should be resolved
        `handler` - the to notify with the . The handler will get notified with a List that contains all resolved `String`s. If none was found it will get notified with an empty `List`. If an error accours it will get failed.
      Returns:
        a reference to this, so the API can be used fluently.

    - #### resolveNSObservable

          @Deprecated
          public rx.Observable<List<String>> resolveNSObservable(String name)

      Deprecated. use `rxResolveNS(java.lang.String)` instead
      Try to resolve the NS records for the given name.
      Parameters:
        `name` - the name for which the NS records should be resolved
      Returns:

    - #### rxResolveNS

          public rx.Single<List<String>> rxResolveNS(String name)

      Try to resolve the NS records for the given name.
      Parameters:
        `name` - the name for which the NS records should be resolved
      Returns:

    - #### resolveSRV

          public DnsClient resolveSRV(String name,
                                      Handler<AsyncResult<List<SrvRecord>>> handler)

      Try to resolve the SRV records for the given name.
      Parameters:
        `name` - the name for which the SRV records should be resolved
        `handler` - the to notify with the . The handler will get notified with a List that contains all resolved `SrvRecord`s. If none was found it will get notified with an empty `List`. If an error accours it will get failed.
      Returns:
        a reference to this, so the API can be used fluently.

    - #### resolveSRVObservable

          @Deprecated
          public rx.Observable<List<SrvRecord>> resolveSRVObservable(String name)

      Deprecated. use `rxResolveSRV(java.lang.String)` instead
      Try to resolve the SRV records for the given name.
      Parameters:
        `name` - the name for which the SRV records should be resolved
      Returns:

    - #### rxResolveSRV

          public rx.Single<List<SrvRecord>> rxResolveSRV(String name)

      Try to resolve the SRV records for the given name.
      Parameters:
        `name` - the name for which the SRV records should be resolved
      Returns:

    - #### reverseLookup

          public DnsClient reverseLookup(String ipaddress,
                                         Handler<AsyncResult<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.
      Parameters:
        `ipaddress` - the IP address to resolve the PTR for
        `handler` - the to notify with the . 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.
      Returns:
        a reference to this, so the API can be used fluently.

    - #### reverseLookupObservable

          @Deprecated
          public rx.Observable<String> reverseLookupObservable(String ipaddress)

      Deprecated. use `rxReverseLookup(java.lang.String)` instead
      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.
      Parameters:
        `ipaddress` - the IP address to resolve the PTR for
      Returns:

    - #### rxReverseLookup

          public rx.Single<String> rxReverseLookup(String ipaddress)

      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.
      Parameters:
        `ipaddress` - the IP address to resolve the PTR for
      Returns:

    - #### newInstance

          public static DnsClient newInstance(DnsClient arg)

Copyright © 2017. All rights reserved.