vertx / io.vertx.core.dns / DnsClient / resolvePTR

resolvePTR

abstract fun resolvePTR(name: String, handler: Handler<AsyncResult<String>>): DnsClient

Try to resolve the PTR record for the given name.

Parameters

name - the name to resolve the PTR for

handler - the Handler to notify with the AsyncResult. The handler will get notified with the resolved String if a record was found. If none was found it will get notified with null. If an error accours it will get failed.

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