Provides a way to asynchronously lookup information from DNS servers.

Please consult the documentation for more information on DNS clients.

- `Anything`
  - `Object`
    - `Basic` ...and other supertypes
      - `DnsClient`

- `DnsClient`
  - `Basic`
    - `Identifiable`
    - `Object`
      - `Anything`

no subtypes hierarchy

Initializer
`DnsClient(DnsClient unknown)`

Inherited Attributes
Attributes inherited from: `Object` `hash`, `string`

Methods
`lookup` | `shared default DnsClient lookup(String name, Anything(Throwable|String?) handler)` 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 `handler` the handler to notify with the async result. 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.
`lookup4` | `shared default DnsClient lookup4(String name, Anything(Throwable|String?) handler)` Try to lookup the A (ipv4) record for the given name. The first found will be used. Parameters: `name` the name to resolve `handler` the to notify with the async result. The handler will get notified with the resolved `java.net.Inet4Address` if a record was found. If non was found it will get notifed with `null`. If an error accours it will get failed.
`lookup6` | `shared default DnsClient lookup6(String name, Anything(Throwable|String?) handler)` Try to lookup the AAAA (ipv6) record for the given name. The first found will be used. Parameters: `name` the name to resolve `handler` the to notify with the . The handler will get notified with the resolved `java.net.Inet6Address` if a record was found. If non was found it will get notifed with `null`. If an error accours it will get failed.
`resolveA` | `shared default DnsClient resolveA(String name, Anything(Throwable|List<String>) handler)` Try to resolve all A (ipv4) records for the given name. Parameters: `name` the name to resolve `handler` the handler to notify with the async result. The handler will get notified with a `List` that contains all the resolved `java.net.Inet4Address`es. If none was found an empty `List` will be used. If an error accours it will get failed.
`resolveAAAA` | `shared default DnsClient resolveAAAA(String name, Anything(Throwable|List<String>) handler)` Try to resolve all AAAA (ipv6) records for the given name. Parameters: `name` the name to resolve `handler` the handler to notify with the async result. The handler will get notified with a `List` that contains all the resolved `java.net.Inet6Address`es. If none was found an empty `List` will be used. If an error accours it will get failed.
`resolveCNAME` | `shared default DnsClient resolveCNAME(String name, Anything(Throwable|List<String>) handler)` Try to resolve the CNAME record for the given name. Parameters: `name` the name to resolve the CNAME for `handler` the to notify with the . 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.
`resolveMX` | `shared default DnsClient resolveMX(String name, Anything(Throwable|List<MxRecord>) handler)` Try to resolve the MX records for the given name. Parameters: `name` the name for which the MX records should be resolved `handler` the handler to notify with the async result. The handler will get notified with a List that contains all resolved MxRecords, sorted by their priority. If non was found it will get notified with an empty `List`. If an error accours it will get failed.
`resolveNS` | `shared default DnsClient resolveNS(String name, Anything(Throwable|List<String>) handler)` Try to resolve the NS records for the given name. Parameters: `name` the name for which the NS records should be resolved `handler` the to notify with the . The handler will get notified with a List that contains all resolved `String`s. If none was found it will get notified with an empty `List`. If an error accours it will get failed.
`resolvePTR` | `shared default DnsClient resolvePTR(String name, Anything(Throwable|String?) handler)` Try to resolve the PTR record for the given name. Parameters: `name` the name to resolve the PTR for `handler` the to notify with the . 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.
`resolveSRV` | `shared default DnsClient resolveSRV(String name, Anything(Throwable|List<SrvRecord>) handler)` Try to resolve the SRV records for the given name. Parameters: `name` the name for which the SRV records should be resolved `handler` the to notify with the . The handler will get notified with a List that contains all resolved SrvRecords. If none was found it will get notified with an empty `List`. If an error accours it will get failed.
`resolveTXT` | `shared default DnsClient resolveTXT(String name, Anything(Throwable|List<String>) handler)` Try to resolve the TXT records for the given name. Parameters: `name` the name for which the TXT records should be resolved `handler` the to notify with the . The handler will get notified with a List that contains all resolved `String`s. If none was found it will get notified with an empty `List`. If an error accours it will get failed.
`reverseLookup` | `shared default DnsClient reverseLookup(String ipaddress, Anything(Throwable|String?) handler)` 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 `handler` the to notify with the . 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.

Inherited Methods
Methods inherited from: `Object` `equals`