> I want to programmatically get the name of the server on which CF
> is running, which I believe I can only do through the registry
> (cgi.server_name will not work).
>
> Anyone know where I should look in the registry? A quick scan
> turned it up in a few different places, but I want to make sure
> i find something reliable.

This depends on what "name" you actually want to get. There are all kinds of
names out there. Windows machines have NetBIOS names (one per machine). Web
servers with multiple virtual servers might have multiple corresponding DNS
names for each virtual server. DNS servers might have records not only for
individual hosts, but also for aliases - this is useful for setting up host
header name support so that multiple virtual servers can share a single IP
address. End users might create their own host names in HOSTS files,
emulating what DNS servers do, or they might create their own NetBIOS names
using their LMHOSTS files.

The most reliable source for a host and domain name is the authoritative
name server for the IP address in question. This is called a reverse domain
lookup.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to