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
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. |
|
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. |
|
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. |
|
abstract fun resolveA(name: String, handler: Handler<AsyncResult<MutableList<String>>>): DnsClient
Try to resolve all A (ipv4) records for the given name. |
|
abstract fun resolveAAAA(name: String, handler: Handler<AsyncResult<MutableList<String>>>): DnsClient
Try to resolve all AAAA (ipv6) records for the given name. |
|
abstract fun resolveCNAME(name: String, handler: Handler<AsyncResult<MutableList<String>>>): DnsClient
Try to resolve the CNAME record for the given name. |
|
abstract fun resolveMX(name: String, handler: Handler<AsyncResult<MutableList<MxRecord>>>): DnsClient
Try to resolve the MX records for the given name. |
|
abstract fun resolveNS(name: String, handler: Handler<AsyncResult<MutableList<String>>>): DnsClient
Try to resolve the NS records for the given name. |
|
abstract fun resolvePTR(name: String, handler: Handler<AsyncResult<String>>): DnsClient
Try to resolve the PTR record for the given name. |
|
abstract fun resolveSRV(name: String, handler: Handler<AsyncResult<MutableList<SrvRecord>>>): DnsClient
Try to resolve the SRV records for the given name. |
|
abstract fun resolveTXT(name: String, handler: Handler<AsyncResult<MutableList<String>>>): DnsClient
Try to resolve the TXT records for the given name. |
|
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. |