class Standard . DNSresolver {
int32 createdHTobj;
int32 createdNSobj;
int32 debugFlag;
array failure;
oid htObj;
array io_queue;
int32 maxRetries;
array nameServers;
int32 nextRequestId;
int32 nsIndex;
oid nsObj;
string nsPort;
assoc optionFlags;
int32 rotationActive;
oid serviceOID;
oid sockIPv6Obj;
oid sockObj;
int32 timeoutPeriod;
int32 useIP6first;
int32 useTCPbyDefault;
} inherits from Object;
Class DNSresolver makes and parses a variety of Domain Name Service queries. This class provides the preferred interface for looking up host names and addresses.
DNSresolver:create()
Creates and registers the name server interface. If a NameServerDirectory object does not exist, it is automatically created. If the HostTable object does not exist, it is created.
DNSresolver:getHostByName(string host)
Looks up a host name and returns the "official" host name and address of the host. This method takes one argument that is the name of the host for which information should be looked up.
DNSresolver:getHostByAddress(any addr)
Looks up an IP address and returns the "official" host name. This method takes one argument that is the address to be looked up. It can be either an integer or dotted-decimal string.