ASP 101 - Active Server Pages 101 - Web06
The Place ASP Developers Go!



Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates
ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash



 Top ASP 101 Stories Top ASP 101 Stories
Connections, Commands, And Procedures
What is ASP?
VBScript Classes: Part 1 of N

QUICK TIP:
Navigation Stars *
Show All Tips >>
ASP 101 RSS Feed ASP 101 Updates


Quick Tips


Configure IIS to Perform Reverse DNS Lookups

By default, performing a Request.ServerVariables("REMOTE_HOST") in ASP returns the value of REMOTE_ADDR, the IP address of the client.

You can have the REMOTE_HOST variable return the Host Name instead by using the Adsutil.vbs script.

The default locations for this script are:
IIS 4.0 - C:\WinNT\System32\InetSrv\AdminSamples
IIS 5.0 - C:\InetPub\AdminScripts

Once you find the location of the adsutil.vbs script, open a command prompt and cd to the directory that holds the script (cd InetPub\AdminScripts). Then type:
cscript adsutil.vbs set /w3svc/EnableReverseDNS "TRUE"

The value of Request.ServerVariables("REMOTE_HOST") will now return the Remote Host name and not the IP Address.

Note: While this can be useful, caution should be exercised when making this change as it requires extra processing and can have a detrimental effect on server performance. Be sure to test your application and server setup to be sure it can handle the additional load and that the performance hit is acceptable before enabling this lookup in a production environment.

More info is available from MSDN: KB Article Q245574


Previous      Show All Tips      Next

If you have a tip you would like to submit, please send it to: webmaster@asp101.com.


Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers