vertx / io.vertx.kotlin.core.dns / io.vertx.core.dns.DnsClient

Extensions for io.vertx.core.dns.DnsClient

lookup4Await

suspend fun DnsClient.lookup4Await(name: String): String?

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

lookup6Await

suspend fun DnsClient.lookup6Await(name: String): String?

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

lookupAwait

suspend fun DnsClient.lookupAwait(name: String): String?

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

resolveAAAAAwait

suspend fun DnsClient.resolveAAAAAwait(name: String): List<String>

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

resolveAAwait

suspend fun DnsClient.resolveAAwait(name: String): List<String>

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

resolveCNAMEAwait

suspend fun DnsClient.resolveCNAMEAwait(name: String): List<String>

Try to resolve the CNAME record for the given name.

resolveMXAwait

suspend fun DnsClient.resolveMXAwait(name: String): List<MxRecord>

Try to resolve the MX records for the given name.

resolveNSAwait

suspend fun DnsClient.resolveNSAwait(name: String): List<String>

Try to resolve the NS records for the given name.

resolvePTRAwait

suspend fun DnsClient.resolvePTRAwait(name: String): String?

Try to resolve the PTR record for the given name.

resolveSRVAwait

suspend fun DnsClient.resolveSRVAwait(name: String): List<SrvRecord>

Try to resolve the SRV records for the given name.

resolveTXTAwait

suspend fun DnsClient.resolveTXTAwait(name: String): List<String>

Try to resolve the TXT records for the given name.

reverseLookupAwait

suspend fun DnsClient.reverseLookupAwait(ipaddress: String): 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.