#REMOTE_HOST# not resolving hostname of client

Hi all

I’m running a Win2k16 host with CF9 and Lucee 5.3.3.62 on it. I’ve two different IIS websites running, one is using the CF interpreter and the other one is using the Lucee interpreter.

I’ve the same code on both websites:
#REMOTE_HOST# (#REMOTE_ADDR#)

  • The site on CF throws:
    hostname.localdomain.local (10.0.0.110)

  • The site on Lucee throws:
    10.0.0.110 (10.0.0.110)

Both IIS Websites have
system.webServer/security/ipSecurity/enableReverseDns = True

The logfile of IIS list clients with resolved DNS records on both sites.

Any idea what i’m doing wrong?

Cheers Tom

Hi all

enableLookups=“true” in server.xml does not work too :frowning:

    <Connector port="8888" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"
			   enableLookups="true" />

Regards
Tom

Hi all

This is working:

<cfset inet_address = CreateObject("java", "java.net.InetAddress")>
<cfset host_name = inet_address.getByName("66.249.66.99").getHostName()>
<cfoutput>#host_name#</cfoutput>

Output:
crawl-66-249-66-99.googlebot.com

1 Like