vertx / io.vertx.reactivex.core.dns / DnsClient

DnsClient

open class DnsClient

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 io.vertx.core.dns.DnsClient non RX-ified interface using Vert.x codegen.

Constructors

<init>

DnsClient(delegate: DnsClient)

Properties

__TYPE_ARG

static val __TYPE_ARG: TypeArg<DnsClient>

Functions

equals

open fun equals(other: Any?): Boolean

getDelegate

open fun getDelegate(): DnsClient

hashCode

open fun hashCode(): Int

lookup

open fun lookup(name: String, handler: Handler<AsyncResult<String>>): DnsClient

Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name. The first found will be used.

lookup4

open fun lookup4(name: String, handler: Handler<AsyncResult<String>>): DnsClient

Try to lookup the A (ipv4) record for the given name. The first found will be used.

lookup6

open fun lookup6(name: String, handler: Handler<AsyncResult<String>>): DnsClient

Try to lookup the AAAA (ipv6) record for the given name. The first found will be used.

newInstance

open static fun newInstance(arg: DnsClient): DnsClient

resolveA

open fun resolveA(name: String, handler: Handler<AsyncResult<MutableList<String>>>): DnsClient

Try to resolve all A (ipv4) records for the given name.

resolveAAAA

open fun resolveAAAA(name: String, handler: Handler<AsyncResult<MutableList<String>>>): DnsClient

Try to resolve all AAAA (ipv6) records for the given name.

resolveCNAME

open fun resolveCNAME(name: String, handler: Handler<AsyncResult<MutableList<String>>>): DnsClient

Try to resolve the CNAME record for the given name.

resolveMX

open fun resolveMX(name: String, handler: Handler<AsyncResult<MutableList<MxRecord>>>): DnsClient

Try to resolve the MX records for the given name.

resolveNS

open fun resolveNS(name: String, handler: Handler<AsyncResult<MutableList<String>>>): DnsClient

Try to resolve the NS records for the given name.

resolvePTR

open fun resolvePTR(name: String, handler: Handler<AsyncResult<String>>): DnsClient

Try to resolve the PTR record for the given name.

resolveSRV

open fun resolveSRV(name: String, handler: Handler<AsyncResult<MutableList<SrvRecord>>>): DnsClient

Try to resolve the SRV records for the given name.

resolveTXT

open fun resolveTXT(name: String, handler: Handler<AsyncResult<MutableList<String>>>): DnsClient

Try to resolve the TXT records for the given name.

reverseLookup

open fun reverseLookup(ipaddress: String, handler: Handler<AsyncResult<String>>): DnsClient

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.

rxLookup

open fun rxLookup(name: String): Maybe<String>

Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name. The first found will be used.

rxLookup4

open fun rxLookup4(name: String): Maybe<String>

Try to lookup the A (ipv4) record for the given name. The first found will be used.

rxLookup6

open fun rxLookup6(name: String): Maybe<String>

Try to lookup the AAAA (ipv6) record for the given name. The first found will be used.

rxResolveA

open fun rxResolveA(name: String): Single<MutableList<String>>

Try to resolve all A (ipv4) records for the given name.

rxResolveAAAA

open fun rxResolveAAAA(name: String): Single<MutableList<String>>

Try to resolve all AAAA (ipv6) records for the given name.

rxResolveCNAME

open fun rxResolveCNAME(name: String): Single<MutableList<String>>

Try to resolve the CNAME record for the given name.

rxResolveMX

open fun rxResolveMX(name: String): Single<MutableList<MxRecord>>

Try to resolve the MX records for the given name.

rxResolveNS

open fun rxResolveNS(name: String): Single<MutableList<String>>

Try to resolve the NS records for the given name.

rxResolvePTR

open fun rxResolvePTR(name: String): Maybe<String>

Try to resolve the PTR record for the given name.

rxResolveSRV

open fun rxResolveSRV(name: String): Single<MutableList<SrvRecord>>

Try to resolve the SRV records for the given name.

rxResolveTXT

open fun rxResolveTXT(name: String): Single<MutableList<String>>

Try to resolve the TXT records for the given name.

rxReverseLookup

open fun rxReverseLookup(ipaddress: String): Maybe<String>

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.

toString

open fun toString(): String