vertx / io.vertx.core.dns / DnsClient

DnsClient

interface DnsClient

Provides a way to asynchronously lookup information from DNS servers.

Please consult the documentation for more information on DNS clients.

Author
Norman Maurer

Functions

lookup

abstract 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

abstract 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

abstract 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.

resolveA

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

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

resolveAAAA

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

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

resolveCNAME

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

Try to resolve the CNAME record for the given name.

resolveMX

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

Try to resolve the MX records for the given name.

resolveNS

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

Try to resolve the NS records for the given name.

resolvePTR

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

Try to resolve the PTR record for the given name.

resolveSRV

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

Try to resolve the SRV records for the given name.

resolveTXT

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

Try to resolve the TXT records for the given name.

reverseLookup

abstract 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.