A domain name service that resolves IP addresses for host names. Most applications will use the system DNS service, which is the default. Some applications may provide their own implementation to use a different DNS server, to prefer IPv6 addresses, to prefer IPv4 addresses, or to force a specific known IP address.
Implementations of this interface must be safe for concurrent use.
|lookup||Returns the IP addresses of
Companion Object Properties¶
|SYSTEM||A DNS that uses InetAddress.getAllByName to ask the underlying operating system to lookup IP addresses. Most custom Dns implementations should delegate to this instance.