List of usage examples for io.vertx.core.dns DnsClient resolvePTR
@Fluent DnsClient resolvePTR(String name, Handler<AsyncResult<@Nullable String>> handler);
From source file:examples.DNSExamples.java
License:Open Source License
public void example14(Vertx vertx) { DnsClient client = vertx.createDnsClient(53, "10.0.0.1"); client.resolvePTR("1.0.0.10.in-addr.arpa", ar -> { if (ar.succeeded()) { String record = ar.result(); System.out.println(record); } else {/*from w w w.j av a 2s . c o m*/ System.out.println("Failed to resolve entry" + ar.cause()); } }); }