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

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.

Parameters

name - the name to resolve

Return
a reference to this, so the API can be used fluently *