DSDns COMPONENT v1.0
DSDns allows you to easily add DNS resolution functionality to your application or web page. DSDns can resolve Host names to IP addresses (forward lookup) or IP addresses to Host names (reverse lookup). For your convenience we added two additional features to DSDns. The first allows you to get the current IP address of the machine the component is installed on. This is especially useful for dialup users who most of the times receive a different IP address every time they are online. The second feature allows you to validate IP addresses saving you the hassle of doing it in your own code.
If you need more information about Internet domain names click here.
Installation of the component is very simple using the provided installation utility. The component DSDns.dll will be copied to the system directory (like \WinNT\system32 for NT or \windows\system for Win95). However if you move the DLL to another directory remember to register the component using the resgsrv32 program before trying to use it.
Change to the directory where you copied the DLL and type:
DSDns Code Sample
The following code snippet demonstrates how to use DSDns component from VBScript / ASP. In this example we will retrieve the IP address of www.donia.com
Dim Lookup as Object
Dim IP as String
Set Lookup = CreateObject("DSDNS.Lookup") 'Create the Lookup object
IP = Lookup.DNSLookup("www.donia.com") 'the passed String in String S
Visual Basic: This sample demonstrates how to use all of the methods exposed by the component.
Download the Visual Basic Sample (size 3 KB)
- Users can upgrade for free for minor version changes. For example, upgrades from version 1.00 to 1.99 are free. The upgrade from 1.99 to 2.0 may carry an additional license fee.
- The latest version of the components are always available at http://www.donia.com/products.htm. If a fee is associated with obtaining the upgrade it will be noted on that page.
To upgrade the component from a previous version please follow these steps:
- Stop all programs using the component. If you are using it in ASP stop IIS related services such as Gopher, FTP and W3SVC..
- Install the update using the provided setup utility.
- Don't forget to run regsvr32 as described above if you choose to move the DLL to another directory.
- Restart the necessary programs / services.
If you require technical support please send complete details about the problem you are having to firstname.lastname@example.org. Include the version of DSDns you are using, any error messages, sample code snippets that demonstrate the problem (most problems are scripting errors), information about the hosting environment etc. For example, if you are using ASP to host the component please let me know what version of IIS and ASP you are running (and if you have installed any of the HotFixes). The more information you can provide in your request for help, the faster your problems can be resolved.
Property Description Error
Holds an error description if any of the other methods fail.
This property is read only
LocalIPAddress Returns the IP address of the Host machine the component is being run on.
Method Parameters Return Value Description DNSLookup String
Host name to be resolved.
Host's IP address.
Use this method to retrieve a Host's IP address from the DNS name.
strIP = DNSLookup("www.donia.com")
isValidIPAddress IP address
String value of the IP address to be checked.
Use this method to check if an IP address is a valid one.
DIM validIP as boolean
validIP = isValidIPAddress("0.0.0.0")
IP address to be 'resolved'.
Use this method to retrieve a Host's DNS name address from the IP address.
hName = ReverseDNSLookup("0.0.0.0")
Not all DNS servers support this method.
About None Use this method to check if you are running an Evaluation version or a Full version.
The new alternative to .COM domain names!
Copyright © 1998 - 1999 Hassan Fekih. All Rights Reserved.