Solved

ASP remote_host help

Posted on 2013-06-04
1
519 Views
Last Modified: 2013-06-20
Getting back into web after about 10 years. Setting up an intranet for my company. Windows 2008 R2, IIS.

I have a basic form setup for tech support and I'm trying to automatically get the computers name into the database, and email that's sent to me.

Seems like IIS wont do a reverse lookup.

These dont work (I have ColdFusion installed as well)
 <%Response.Write(Request.ServerVariables("remote_host"))%>
CGI.remote_host

Both just return the ip address. How do I get the hostname?

I ran this in IIS to supposedly turn on reverse lookups.
cscript adsutil.vbs set /w3svc/EnableReverseDNS "TRUE"

Thanks for any help
0
Comment
Question by:cb_it
1 Comment
 
LVL 15

Accepted Solution

by:
pateljitu earned 500 total points
ID: 39219308
Running cscript command "cscript adsutil.vbs set /w3svc/EnableReverseDNS "TRUE" for IIS 7 will not work.

Please see following article to enable "IP and Domain Restrictions" role service on windows 2008 server

http://www.expta.com/2010/01/how-to-enable-reverse-dns-lookup-in-iis.html

refer to this article for enabling "IP and Domain Restrictions"
http://www.iis.net/configreference/system.webserver/security/ipsecurity
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now