This is a pretty useful snippet for a clustered environment. It is a simple java snippet to get your local server host name. Please remember that if your servers are Unix based, this values are retrieved from the /etc/hosts file.

<cfset inet = CreateObject("java", "java.net.InetAddress")>

<cfset inet = inet.getLocalHost()>

<cfoutput>#inet.getHostName()#</cfoutput>