MOTOBIT.COM - ASP upload, IIS utility Simple ip/host resolution

Sample for Simple DNS+Traceroute | Changes | Purchase | Download


Simple ip/host resolution 
Set DNS = CreateObject("TCPIP.DNS")
On Error Resume Next
ip = DNS.GetIPByHost("")
host = DNS.GetHostByIP(ip)
If Err <> 0 Then
  'some dns error - host not found, ...
End If
On Error Goto 0

Other links for the Simple ip/host resolution sample

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: