Just came across this rather interesting way to get the current hostname programmatically. Thought it might be useful to post here.
[xml]
<cfset inet = CreateObject("java", "java.net.InetAddress")>
<cfdump var = "#inet.getLocalhost().gethostname()#">[/xml]