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

`handler` - the io.vertx.core.Handler to notify with the io.vertx.core.AsyncResult. The handler will get notified with the resolved address if a record was found. If non was found it will get notifed with null. If an error accours it will get failed.

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