Description
Drill provides the DRILL_HOST_NAME env var which determines what Drillbit host name will be exchanged over RPC for later look up by a remote client or Drillbit. This host name is used to check whether Drill is being asked to bind to the loopback address in distributed mode
if (isDistributedMode && InetAddress.getByName(hostName).isLoopbackAddress()) { throw new DrillbitStartupException("Drillbit is disallowed to bind to loopback address in distributed mode."); }
but is not subsequently used set the bind address used for the Drillbit's RPC and web ports! This issue proposes that the Drillbit network services bind address is determined by DRILL_HOST_NAME.