Java org.apache.hadoop.net DNS fields, constructors, methods, implement or subclass

Example usage for Java org.apache.hadoop.net DNS fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.hadoop.net DNS.

The text is from its open source code.

Method

StringgetDefaultHost(@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.
StringgetDefaultHost(@Nullable String strInterface)
Returns the default (first) host name associated by the default nameserver with the address bound to the specified network interface
StringgetDefaultIP(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.
StringreverseDns(InetAddress hostIp, @Nullable String ns)
Returns the hostname associated with the specified IP address by the provided nameserver.