DSDns COMPONENT v1.0
HOME

You name It
   

About DSDns

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.

DSDns can be used with any COM compliant environment: Scripting languages (VBScript, JavaScript), Visual Basic (Versions 4 and up), VBA (Word, Excel, Access ...), VC++, BC++, Delphi, Power Builder.

If you need more information about Internet domain names click here.

DSDns Installation

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:

regsvr32 DSDns.dll

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

Samples

Visual Basic: This sample demonstrates how to use all of the methods exposed by the component.

About Upgrades

  1. 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.
  2. 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.

Upgrade Instructions

To upgrade the component from a previous version please follow these steps:

  1. Stop all programs using the component. If you are using it in ASP stop IIS related services such as Gopher, FTP and W3SVC..
  2. Install the update using the provided setup utility.
  3. Don't forget to run regsvr32 as described above if you choose to move the DLL to another directory.
  4. Restart the necessary programs / services.

Technical Support

If you require technical support please send complete details about the problem you are having to support@donia.com. 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.

 

DSDns Properties

Property Description
Error

(String)

Holds an error description if any of the other methods fail.


Note:

This property is read only

LocalIPAddress Returns the IP address of the Host machine the component is being run on.

 

DSDns Methods

Method Parameters Return Value Description
DNSLookup String

Host name to be resolved.

String

Host's IP address.

Use this method to retrieve a Host's IP address from the DNS name.

Example:

DIM strIP$
strIP = DNSLookup("www.donia.com")

isValidIPAddress IP address

String value of the IP address to be checked.

Boolean

TRUE/FALSE

Use this method to check if an IP address is a valid one.

Example:

DIM validIP as boolean
validIP = isValidIPAddress("0.0.0.0")

ReverseDNSLookup String

IP address to be 'resolved'.

String

Host name.

Use this method to retrieve a Host's DNS name address from the IP address.

Example:

DIM hName$
hName = ReverseDNSLookup("0.0.0.0")

NOTE:

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!
The new alternative to .COM domain names!

Copyright 1998 - 1999 Hassan Fekih. All Rights Reserved.