List of usage examples for io.vertx.core.dns DnsClient resolveSRV
@Fluent DnsClient resolveSRV(String name, Handler<AsyncResult<List<SrvRecord>>> handler);
From source file:examples.DNSExamples.java
License:Open Source License
public void example12(Vertx vertx) { DnsClient client = vertx.createDnsClient(53, "10.0.0.1"); client.resolveSRV("vertx.io", ar -> { if (ar.succeeded()) { List<SrvRecord> records = ar.result(); for (SrvRecord record : records) { System.out.println(record); }//from ww w .j a v a 2 s.c om } else { System.out.println("Failed to resolve entry" + ar.cause()); } }); }