Example usage for Java org.apache.hadoop.net DNS fields, constructors, methods, implement or subclass
The text is from its open source code.
String | getDefaultHost(@Nullable String strInterface, @Nullable String nameserver) Returns the default (first) host name associated by the provided nameserver with the address bound to the specified network interface. |
String | getDefaultHost(@Nullable String strInterface) Returns the default (first) host name associated by the default nameserver with the address bound to the specified network interface |
String | getDefaultIP(String strInterface) Returns the first available IP address associated with the provided network interface or the local host IP if "default" is given. |
String[] | getIPs(String strInterface, boolean returnSubinterfaces) Returns all the IPs associated with the provided interface, if any, in textual form. |
String | reverseDns(InetAddress hostIp, @Nullable String ns) Returns the hostname associated with the specified IP address by the provided nameserver. |