GetHostByIP

ActiveX/VBSScript registry editor  ActiveX NT User account manager  Export MDB/DBF from ASP
Url replacer, IIS url rewrite Active LogFile  Email export  ActiveX/ASP Scripting Dictionary object
 IISTracer, real-time IIS monitor
 Huge ASP upload - upload files with progress.
          Method 
          Member of  Simple DNS+Traceroute.DNS 

Description

Retrieves the host information corresponding to a network address.

Syntax

Host = DNS.GetHostByIP (IP as String)
 
Where Type Optional Default Description
 IP  String     IP network address. 

Returns

String

Examples

 ASP sample  
Set DNS = CreateObject("TCPIP.DNS")

On Error Resume Next
host = DNS.GetHostByIP(Request.ServerVariables("REMOTE_ADDR"))
If Err <> 0 Then
  'some dns error - host not found, ...
End If
On Error Goto 0

See also

  Other links for GetHostByIP

Methods of DNS class

Simple DNS+Traceroute.DNS

Object for resolving IP adress and host name.

Simple DNS+Traceroute

      Object for simple IP adress and host name resolution, ASP and VB TraceRoute/ping.

© 1996 – 2006 Antonin Foller, Motobit Software, help{at}pstruh.cz, help v. 1.2.38