Defines the address pattern for matching an IPv4 address.
Defines the default domain for docker containers.
Defines the default docker host IP address.
Defines the byte representation of the docker host IP address.
Defines the docker domain for docker containers.
Defines the docker host IP address.
Returns the bytes for an address.
Returns the bytes for an address.
the address
the bytes
Returns the value of an environment variable if set; otherwise, a default value
Returns the value of an environment variable if set; otherwise, a default value
the variable
the default value
the value if set; otherwise, the default value
Returns the hostname that corresponds to an address.
Returns the hostname that corresponds to an address.
the address
the hostname
UnknownHostException if the address does not correspond to a hostname
Returns the addresses that resolve for a hostname.
Returns the addresses that resolve for a hostname.
the hostname
the addresses
UnknownHostException if the hostname does not resolve
Provides an implementation of the NameService interface that resolves the IP addresses of docker containers.
By implementing the NameService interface this object allows JVM processes running in the Oracle JRE/JDK to override the system name service providers for the purpose of resolving docker container names to the appropriate docker host. For example, when running docker locally (e.g., via dockerd or docker for mac) container hostnames cannot be resolved from the host computer.