vertx / io.vertx.core.dns / DnsClient / resolveMX

# resolveMX

`abstract fun resolveMX(name: String, handler: Handler<AsyncResult<MutableList<MxRecord>>>): DnsClient`

Try to resolve the MX records for the given name.

### Parameters

`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 MxRecords, sorted by their `MxRecord#priority()`. If non was found it will get notified with an empty java.util.List. If an error accours it will get failed.

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