Tcl Powered!NeoWebScript

Home
 
Download
User Info
New User FAQ
Tutorials
Demos
Commands
Variables
Troubleshooting
Sysop Info
Sysop FAQ
Theory
Installation
Management
Tests
Troubleshooting
Feedback
Resources
Release Notes
Credits
Disclaimer
REMOTE_HOSTNAME - NeoWebScript
Synopsis * Description

Returns the hostname of the remote host.

Synopsis

  • remote_hostname [ip-address]

Description

This returns the hostname of the remote host if it can be determined. If the webserver is running with normal DNS, we return the hostname already looked up and stored in the environment. If it´s running with minimal DNS, we perform a DNS lookup on the IP number to try to get the hostname. If we succeed, we return the hostname, otherwise we return the IP number.

If ip-address is provided, then it attempts to resolve the given IP. Warning: resolution failures can take a long time and make a page callup slow.

Copyright © 1995-1999 NeoSoft Inc., 1770 St. James Place, Suite 500, Houston, TX 77056 USA. All Rights Reserved