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

resolveAAwait

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

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

Parameters

name - the name to resolve

handler - the io.vertx.core.Handler to notify with the io.vertx.core.AsyncResult. The handler will get notified with a java.util.List that contains all the resolved java.net.Inet4Addresses. If none was found an empty java.util.List will be used. If an error accours it will get failed.

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