| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final DatagramChannel | |
| private volatile Future | |
| private final ContextInternal | |
| private final InetSocketAddress | |
| private static final char[] | |
| private final LongObjectMap | |
| private final DnsClientOptions | |
| private final VertxInternal |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close(Handler<AsyncResult<Void>> handler)
Implements io. Close the client. |
| public Future | close()
Implements io. Like |
| private long | |
| public void | |
| public DnsClient | lookup(String
the name to resolve name, Handler<AsyncResult<String>> the handler)io. to notify with the io..
The handler will get notified with the resolved address if a record was found. If non was found it
will get notifed with null. If an error accours it will get failed.Implements io. Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name. |
| public Future | lookup(String name)
Implements io. Like |
| public DnsClient | lookup4(String
the name to resolve name, Handler<AsyncResult<String>> the handler)Handler to notify with the io..
The handler will get notified with the resolved java. if a record was found.
If non was found it will get notifed with null. If an error accours it will get failed.Implements io. Try to lookup the A (ipv4) record for the given name. |
| public Future | lookup4(String name)
Implements io. Like |
| public DnsClient | lookup6(String
the name to resolve name, Handler<AsyncResult<String>> the handler)Handler to notify with the AsyncResult. The handler will get
notified with the resolved java. if a record was found. If non was found
it will get notifed with null. If an error accours it will get failed.Implements io. Try to lookup the AAAA (ipv6) record for the given name. |
| public Future | lookup6(String name)
Implements io. Like |
| private <T> Future | |
| private <T> Future | |
| public DnsClient | resolveA(String
the name to resolve name, Handler<AsyncResult<List<String>>> the handler)io. to notify with the io..
The handler will get notified with a java. that contains all the resolved
java.es. If none was found an empty java. will be used.
If an error accours it will get failed.Implements io. Try to resolve all A (ipv4) records for the given name. |
| public Future | resolveA(String name)
Implements io. Like |
| public DnsClient | resolveAAAA(String
the name to resolve name, Handler<AsyncResult<List<String>>> the handler)io. to notify with the io..
The handler will get notified with a java. that contains all the resolved
java.es. If none was found an empty java. will be used.
If an error accours it will get failed.Implements io. Try to resolve all AAAA (ipv6) records for the given name. |
| public Future | resolveAAAA(String name)
Implements io. Like |
| public DnsClient | resolveCNAME(String
the name to resolve the CNAME for name, Handler<AsyncResult<List<String>>> the handler)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.Implements io. Try to resolve the CNAME record for the given name. |
| public Future | resolveCNAME(String name)
Implements io. Like |
| public DnsClient | resolveMX(String
the name for which the MX records should be resolved name, Handler<AsyncResult<List<MxRecord>>> the handler)io. to notify with the io..
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.. If an error accours it will get failed.Implements io. Try to resolve the MX records for the given name. |
| public Future | resolveMX(String name)
Implements io. Like |
| public Future | resolveNS(String name)
Implements io. Like |
| public DnsClient | resolveNS(String
the name for which the NS records should be resolved name, Handler<AsyncResult<List<String>>> the handler)Handler to notify with the AsyncResult. The handler will get
notified with a List that contains all resolved Strings. If none was found it will
get notified with an empty java.. If an error accours it will get failed.Implements io. Try to resolve the NS records for the given name. |
| public Future | resolvePTR(String name)
Implements io. Like |
| public DnsClient | resolvePTR(String
the name to resolve the PTR for name, Handler<AsyncResult<String>> the handler)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.Implements io. Try to resolve the PTR record for the given name. |
| public Future | resolveSRV(String name)
Implements io. Like |
| public DnsClient | resolveSRV(String
the name for which the SRV records should be resolved name, Handler<AsyncResult<List<SrvRecord>>> the handler)Handler to notify with the AsyncResult. The handler will get
notified with a List that contains all resolved SrvRecords. If none was found it will
get notified with an empty java.. If an error accours it will get failed.Implements io. Try to resolve the SRV records for the given name. |
| public Future | resolveTXT(String name)
Implements io. Like |
| public DnsClient | resolveTXT(String
the name for which the TXT records should be resolved name, Handler<AsyncResult<List<String>>> the handler)Handler to notify with the AsyncResult. The handler will get
notified with a List that contains all resolved Strings. If none was found it will
get notified with an empty java.. If an error accours it will get failed.Implements io. Try to resolve the TXT records for the given name. |
| public Future | reverseLookup(String address)
Implements io. Like |
| public DnsClient | reverseLookup(String
the IP address to resolve the PTR for address, Handler<AsyncResult<String>> the handler)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.Implements io. Try to do a reverse lookup of an IP address. |
| channel | back to summary |
|---|---|
| private final DatagramChannel channel | |
| closed | back to summary |
|---|---|
| private volatile Future<Void> closed | |
| context | back to summary |
|---|---|
| private final ContextInternal context | |
| dnsServer | back to summary |
|---|---|
| private final InetSocketAddress dnsServer | |
| HEX_TABLE | back to summary |
|---|---|
| private static final char[] HEX_TABLE | |
| inProgressMap | back to summary |
|---|---|
| private final LongObjectMap<DnsClientImpl. | |
| options | back to summary |
|---|---|
| private final DnsClientOptions options | |
| vertx | back to summary |
|---|---|
| private final VertxInternal vertx | |
| DnsClientImpl | back to summary |
|---|---|
| public DnsClientImpl(VertxInternal vertx, DnsClientOptions options) | |
| close | back to summary |
|---|---|
| public void close(Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Close the client.
| |
| close | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| dnsMessageId | back to summary |
|---|---|
| private long dnsMessageId(int id, String query) | |
| inProgressQueries | back to summary |
|---|---|
| public void inProgressQueries(Handler<Integer> handler) | |
| lookup | back to summary |
|---|---|
| public DnsClient lookup(String name, Handler<AsyncResult<String>> handler) Implements io. Doc from io. Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name. The first found will be used.
| |
| lookup | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| lookup4 | back to summary |
|---|---|
| public DnsClient lookup4(String name, Handler<AsyncResult<String>> handler) Implements io. Doc from io. Try to lookup the A (ipv4) record for the given name. The first found will be used.
| |
| lookup4 | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| lookup6 | back to summary |
|---|---|
| public DnsClient lookup6(String name, Handler<AsyncResult<String>> handler) Implements io. Doc from io. Try to lookup the AAAA (ipv6) record for the given name. The first found will be used.
| |
| lookup6 | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| lookupList | back to summary |
|---|---|
private <T> Future
| |
| lookupSingle | back to summary |
|---|---|
| private <T> Future | |
| resolveA | back to summary |
|---|---|
| public DnsClient resolveA(String name, Handler<AsyncResult<List<String>>> handler) Implements io. Doc from io. Try to resolve all A (ipv4) records for the given name.
| |
| resolveA | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| resolveAAAA | back to summary |
|---|---|
| public DnsClient resolveAAAA(String name, Handler<AsyncResult<List<String>>> handler) Implements io. Doc from io. Try to resolve all AAAA (ipv6) records for the given name.
| |
| resolveAAAA | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| resolveCNAME | back to summary |
|---|---|
| public DnsClient resolveCNAME(String name, Handler<AsyncResult<List<String>>> handler) Implements io. Doc from io. Try to resolve the CNAME record for the given name.
| |
| resolveCNAME | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| resolveMX | back to summary |
|---|---|
| public DnsClient resolveMX(String name, Handler<AsyncResult<List<MxRecord>>> handler) Implements io. Doc from io. Try to resolve the MX records for the given name.
| |
| resolveMX | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| resolveNS | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| resolveNS | back to summary |
|---|---|
| public DnsClient resolveNS(String name, Handler<AsyncResult<List<String>>> handler) Implements io. Doc from io. Try to resolve the NS records for the given name.
| |
| resolvePTR | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| resolvePTR | back to summary |
|---|---|
| public DnsClient resolvePTR(String name, Handler<AsyncResult<String>> handler) Implements io. Doc from io. Try to resolve the PTR record for the given name.
| |
| resolveSRV | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| resolveSRV | back to summary |
|---|---|
| public DnsClient resolveSRV(String name, Handler<AsyncResult<List<SrvRecord>>> handler) Implements io. Doc from io. Try to resolve the SRV records for the given name.
| |
| resolveTXT | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| resolveTXT | back to summary |
|---|---|
| public DnsClient resolveTXT(String name, Handler<AsyncResult<List<String>>> handler) Implements io. Doc from io. Try to resolve the TXT records for the given name.
| |
| reverseLookup | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| reverseLookup | back to summary |
|---|---|
| public DnsClient reverseLookup(String address, Handler<AsyncResult<String>> handler) Implements io. Doc from io. Try to do a reverse lookup of an IP address. This is basically the same as doing trying to resolve a PTR record but allows you to just pass in the IP address and not a valid ptr query string.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final DatagramDnsQuery | |
| pack-priv final String | |
| pack-priv final Promise | |
| pack-priv long | |
| pack-priv final DnsRecordType[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| pack-priv void | |
| private boolean | |
| pack-priv void |
| msg | back to summary |
|---|---|
| pack-priv final DatagramDnsQuery msg | |
| name | back to summary |
|---|---|
| pack-priv final String name | |
| promise | back to summary |
|---|---|
| pack-priv final Promise<List<T>> promise | |
| timerID | back to summary |
|---|---|
| pack-priv long timerID | |
| types | back to summary |
|---|---|
| pack-priv final DnsRecordType[] types | |
| Query | back to summary |
|---|---|
| public Query(String name, DnsRecordType[] types) | |
| fail | back to summary |
|---|---|
| private void fail(Throwable cause) | |
| handle | back to summary |
|---|---|
| pack-priv void handle(DnsResponse msg) | |
| isRequestedType | back to summary |
|---|---|
| private boolean isRequestedType(DnsRecordType dnsRecordType, DnsRecordType[] types) | |
| run | back to summary |
|---|---|
| pack-priv void run() | |