Mark Payne created NIFI-7758:
--------------------------------
Summary: Site-to-Site and ListenTCP unnecessarily perform Reverse
DNS Lookup
Key: NIFI-7758
URL: https://issues.apache.org/jira/browse/NIFI-7758
Project: Apache NiFi
Issue Type: Bug
Components: Core Framework, Extensions
Reporter: Mark Payne
Assignee: Mark Payne
The SSLSocketChannel class in nifi-security-utils obtains the remote address's
hostname via a call to InetAddress.getHostName():
{code}
final Socket socket = socketChannel.socket();
this.hostname = socket.getInetAddress().getHostName();
{code}
This hostname is captured only for use in the message of Exceptions or logging
and not programmatically. The use of this reverse DNS lookup, though, can be
expensive and cause long delays in an environment where reverse DNS lookups are
not available. As a result, we should use InetAddress.toString() instead, which
will provide the hostname, if it is available, and the IP address without
performing a reverse DNS lookup.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)