:RegisterServer()


 

Class

     aprDNS()

 

Syntax

     :RegisterServer(cIP, [nPort], [nServer]) -> lSuccess

 

Parameters

 

 

cIP

IP Address of nameserver

 

nPort

Port. Defaults to 53 (DNS)

 

nServer

Slot in internal array to hold nameserver. If not included, defaults to slot 0.

 

Return

Logical indicating Success.

Returns .T. if the operation succeeds, otherwise returns .F.

 

Description

Add a nameserver address to the current session

The RegisterServer method registers a nameserver with the current client session. The nameserver is used to resolve queries issued by the client, such as returning the IP address for a given host name. At least one nameserver must be registered by the client before queries are issued.

 

See Also

:UnRegisterServer(), :Reset()