Class DnsClient
java.lang.Object
io.vertx.rxjava3.core.dns.DnsClient
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
Provides a way to asynchronously lookup information from DNS servers.
Please consult the documentation for more information on DNS clients.
The client is thread safe and can be used from any thread.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclose()Close the client.booleaninthashCode()Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name.Try to lookup the A (ipv4) record for the given name.Try to lookup the AAAA (ipv6) record for the given name.static DnsClientnewInstance(DnsClient arg) Try to resolve all A (ipv4) records for the given name.resolveAAAA(String name) Try to resolve all AAAA (ipv6) records for the given name.resolveCNAME(String name) Try to resolve the CNAME record for the given name.Try to resolve the MX records for the given name.Try to resolve the NS records for the given name.resolvePTR(String name) Try to resolve the PTR record for the given name.resolveSRV(String name) Try to resolve the SRV records for the given name.resolveTXT(String name) Try to resolve the TXT records for the given name.reverseLookup(String ipaddress) Try to do a reverse lookup of an IP address.rxClose()Close the client.Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name.Try to lookup the A (ipv4) record for the given name.Try to lookup the AAAA (ipv6) record for the given name.rxResolveA(String name) Try to resolve all A (ipv4) records for the given name.rxResolveAAAA(String name) Try to resolve all AAAA (ipv6) records for the given name.rxResolveCNAME(String name) Try to resolve the CNAME record for the given name.rxResolveMX(String name) Try to resolve the MX records for the given name.rxResolveNS(String name) Try to resolve the NS records for the given name.rxResolvePTR(String name) Try to resolve the PTR record for the given name.rxResolveSRV(String name) Try to resolve the SRV records for the given name.rxResolveTXT(String name) Try to resolve the TXT records for the given name.rxReverseLookup(String ipaddress) Try to do a reverse lookup of an IP address.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
DnsClient
-
DnsClient
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
lookup
Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name. The first found will be used.- Parameters:
name- the name to resolve- Returns:
- a future notified with the resolved address if a record was found. If none was found it will get notified with
null. If an error occurs it will get failed.
-
rxLookup
Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name. The first found will be used.- Parameters:
name- the name to resolve- Returns:
- a future notified with the resolved address if a record was found. If none was found it will get notified with
null. If an error occurs it will get failed.
-
lookup4
Try to lookup the A (ipv4) record for the given name. The first found will be used.- Parameters:
name- the name to resolve- Returns:
- a future notified with the resolved
Inet4Addressif a record was found. If none was found it will get notified withnull. If an error occurs it will get failed.
-
rxLookup4
Try to lookup the A (ipv4) record for the given name. The first found will be used.- Parameters:
name- the name to resolve- Returns:
- a future notified with the resolved
Inet4Addressif a record was found. If none was found it will get notified withnull. If an error occurs it will get failed.
-
lookup6
Try to lookup the AAAA (ipv6) record for the given name. The first found will be used.- Parameters:
name- the name to resolve- Returns:
- a future notified with the resolved
Inet6Addressif a record was found. If none was found it will get notified withnull. If an error occurs it will get failed.
-
rxLookup6
Try to lookup the AAAA (ipv6) record for the given name. The first found will be used.- Parameters:
name- the name to resolve- Returns:
- a future notified with the resolved
Inet6Addressif a record was found. If none was found it will get notified withnull. If an error occurs it will get failed.
-
resolveA
Try to resolve all A (ipv4) records for the given name.- Parameters:
name- the name to resolve- Returns:
- a future notified with a
Listthat contains all the resolvedInet4Addresses. If none was found an emptyListwill be used. If an error occurs it will get failed.
-
rxResolveA
Try to resolve all A (ipv4) records for the given name.- Parameters:
name- the name to resolve- Returns:
- a future notified with a
Listthat contains all the resolvedInet4Addresses. If none was found an emptyListwill be used. If an error occurs it will get failed.
-
resolveAAAA
Try to resolve all AAAA (ipv6) records for the given name.- Parameters:
name- the name to resolve- Returns:
- a future notified with a
Listthat contains all the resolvedInet6Addresses. If none was found an emptyListwill be used. If an error occurs it will get failed.
-
rxResolveAAAA
Try to resolve all AAAA (ipv6) records for the given name.- Parameters:
name- the name to resolve- Returns:
- a future notified with a
Listthat contains all the resolvedInet6Addresses. If none was found an emptyListwill be used. If an error occurs it will get failed.
-
resolveCNAME
Try to resolve the CNAME record for the given name.- Parameters:
name- the name to resolve the CNAME for- Returns:
- a future notified with the resolved
Stringif a record was found. If none was found it will get notified withnull. If an error occurs it will get failed.
-
rxResolveCNAME
Try to resolve the CNAME record for the given name.- Parameters:
name- the name to resolve the CNAME for- Returns:
- a future notified with the resolved
Stringif a record was found. If none was found it will get notified withnull. If an error occurs it will get failed.
-
resolveMX
Try to resolve the MX records for the given name. -
rxResolveMX
Try to resolve the MX records for the given name. -
resolveTXT
Try to resolve the TXT records for the given name. -
rxResolveTXT
Try to resolve the TXT records for the given name. -
resolvePTR
Try to resolve the PTR record for the given name.- Parameters:
name- the name to resolve the PTR for- Returns:
- a future notified with the resolved
Stringif a record was found. If none was found it will get notified withnull. If an error occurs it will get failed.
-
rxResolvePTR
Try to resolve the PTR record for the given name.- Parameters:
name- the name to resolve the PTR for- Returns:
- a future notified with the resolved
Stringif a record was found. If none was found it will get notified withnull. If an error occurs it will get failed.
-
resolveNS
Try to resolve the NS records for the given name. -
rxResolveNS
Try to resolve the NS records for the given name. -
resolveSRV
Try to resolve the SRV records for the given name. -
rxResolveSRV
Try to resolve the SRV records for the given name. -
reverseLookup
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.- Parameters:
ipaddress- the IP address to resolve the PTR for- Returns:
- a future notified with the resolved
Stringif a record was found. If none was found it will get notified withnull. If an error occurs it will get failed.
-
rxReverseLookup
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.- Parameters:
ipaddress- the IP address to resolve the PTR for- Returns:
- a future notified with the resolved
Stringif a record was found. If none was found it will get notified withnull. If an error occurs it will get failed.
-
close
Close the client.- Returns:
- the future completed when the client resources have been released
-
rxClose
Close the client.- Returns:
- the future completed when the client resources have been released
-
newInstance
-