MOTOBIT.COM - ASP upload, IIS utility GetHostByIP Method of DNS class

Method | Member of  Simple DNS+Traceroute.DNS | Changes | Purchase | Download

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

DNS.GetIPByHost

Other links for GetHostByIP

Methods of DNS class

GetHostByIP, GetIPByHost

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 - 2009 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz