private String getHostName ( InetSocketAddress address ) { return configuration . getAsBoolean ( ConfigKey . ALLOW_DNS_REVERSE_LOOKUP ) ? address . getHostName ( ) : null ; }
Return hostnmae of given address but only when reverse DNS lookups are allowed