suspend fun DnsClient.resolveMXAwait(name: String): List<MxRecord>
Try to resolve the MX records for the given name.
name
- the name for which the MX records should be resolved
handler
- the io.vertx.core.Handler to notify with the io.vertx.core.AsyncResult. The handler will get notified with a List that contains all resolved io.vertx.core.dns.MxRecords, sorted by their io.vertx.core.dns.MxRecord. If non was found it will get notified with an empty java.util.List. If an error accours it will get failed.
Returna
reference to this, so the API can be used fluently. *