Resources | ASP | Resolving Host Names

Resolving Host Names:


For various security reasons, there are going to be times when you need to find the Host Name for a specific IP Address. The following is a an ASP script that you can use to print out a DNS. This script will create a temporary .TXT file and then print out the report onto the client's web page.

If you are doing your own access logs for your web site, you should make modifications to this script and add it to your logging routines, in the SESSION_ONSTART event of your global.asa file.

This code must be run on a Windows 2000 or Windows NT Server to work properly. It creates an object from the Windows Scripting Host object model. You can download the latest version of Windows Scripting from Microsoft.com:


Related Links: Run a Command Line in ASP | Get IP Addresses in ASP

Want to discuss this article, or other development issues? Visit our message boards!

Or contact us directly with a comment or question on this article: click here !
armbrustconsulting.com