BuildersPlanet.comBuildersPlanet Home Page
Host Your Site Here
Marketplace Job Bank Buy/Sell Community News Services
 HOME  >  Services > Web Hosting > Support > ASPDNS 2.x Instant Feedback

AspDNS 2.x

About AspDNS

AspDNS provides IP lookup and reverse host name lookup for known IP addresses.

Simple Lookup Example

** Note from BP Tech Support: you can also download other examples at http://www.serverobjects.com/  . **

The following code demonstrates how to use AspDNS from VBScript.

<%
  Set DNSLook =
  Server.CreateObject("AspDNS.Lookup") strRes = DNSLook.DNSLookup
  ("mailhost.onramp.net")  Response.Write ("<b>The
  IP Address of mailhost.onramp.net is " & strRes & "</b>") %>
  < /FONT  
  >   
             

AspDNS Properties

Property Description
Error The error property is a read-only property used to report lookup errors.

Example:

Response.Write "Error: " & DNSLook.Error

Expires Returns the expiration date of the component if the component is an evaluation copy.

Example:

Response.Write "Component Expires: " & DNSLook.Expires

RegisteredTo If the component has been purchased the RegisteredTo property will return the licensee's name.

Example:

Response.Write "Component Licensee: " & DNSLook.RegisteredTo

TimeOut The maximum time the DNS component will wait for an answer from the DNS server.

Example:

DNSLook.TimeOut = 45

Version Gets the internal component version number.

Example:

Response.Write "Component Version: " & DNSLook.Version

AspDNS Component Methods

Method Parameters Return Value Description
DNSLookup strHostName String DNSLookup does a normal DNS lookup on strHostName. The return value, if successful, is the IP address for strHostName.

strRes =DNSLook.DNSLookup("www.serverobjects.com")

ReverseDNSLookup strIPAddr String ReverseDNSLookup does a reverse DNS lookup on strIPAddr. The return value, if successful, is the host name for strIPAddr.

strRes =DNSLook.ReverseDNSLookup("199.1.195.11")

 

Questions about AspDNS

"AspDNS works great but sometimes I get 'Server object error 'ASP 0177:80040154'. What's causing this?" If AspDNS works fine, then it suddenly stops working and ASP begins to report this error, then you've probably got a memory leak under IIS/ASP. What has happened is that AspDNS objects can no longer be created. This could be caused by a) You haven't installed the ASP patches that fix known ASP memory leaks b) You have a filter or extension installed that's leaking memory c) You have another component that's leaking memory.

AspDNS 2.x has been run under BoundsChecker to verify that AspDNS does not leak memory.

"When running regsvr32 I get an error: 'LoadLibrary ("AspDNS.dll") failed. GetLastError returns 0x0000007e."
  1. You are trying to install the AspDNS Intel binary on NT for Alpha. Currently there is no Alpha version of AspDNS. One is under construction but there's no ETA for the product yet.
  2. The DLL isn't in the same directory you are running regsvr32 from.
  3. The account you are logged in under doesn't have enough security privileges to read the DLL.
  4. The copy you have is corrupt.
What are the minimum security requirements for AspDNS and IIS/ASP? Technically, the only requirement AspDNS has is that it must have access to the temporary directory as noted in one of the previous troubleshooting tips. But IIS and ASP have certain requirements that must be met to run properly. Thanks to Carl Howell for providing this information.
ASP script directory Creator Owner: Full Control (All)(All)
System: ""
Admin: ""
IUSR: (None)(RX)
\WinNT\ Creator Owner: Full Control (All)(All)
System: ""
Admin: ""
IUSR: (WX)(X)
\WinNT\System32\ System: Full Control (All)(All)
Admin: ""
IUSR: (RX)(RX)
Inetsrv System: Full Control (All)(All)
Admin: ""
Everyone: (RX)(RX)

Technical Support

If you require technical support please see our tech support page at http://www.serverobjects.com/support.htm

Copyright © 1996, 1997, 1998, 1999, 2000 by ServerObjects Inc. All Rights Reserved.

Home|Contact Us|Hosting Terms

© Copyright 1999-2000. BuildersPlanet.com All rights reserved..
By using this site you accept our terms  and privacy policy.
For comments or problems, email Webmaster@buildersplanet.com or call 831-335-0475