Package ghidra.framework.remote
Class InetNameLookup
java.lang.Object
ghidra.framework.remote.InetNameLookup
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getCanonicalHostName
(String host) Gets the fully qualified domain name for this IP address or hostname.static boolean
static void
setDisableOnFailure
(boolean state) static void
setLookupEnabled
(boolean enable)
-
Method Details
-
setDisableOnFailure
public static void setDisableOnFailure(boolean state) -
setLookupEnabled
public static void setLookupEnabled(boolean enable) -
isEnabled
public static boolean isEnabled() -
getCanonicalHostName
Gets the fully qualified domain name for this IP address or hostname. Best effort method, meaning we may not be able to return the FQDN depending on the underlying system configuration.- Parameters:
host
- IP address or hostname- Returns:
- the fully qualified domain name for this IP address, or if the operation is not allowed/fails the original host name specified.
- Throws:
UnknownHostException
- the forward lookup of the specified address failed
-