Queries a DNS Server from a specified type of DNS record.
Arguments
[in] Domain
The domain name to be resolved.
[in] Type
Defines the type of query to perform. Possible string values are:
A
NS
MD
MF
CNAME
SOA
MB
MG
MR
NULL
WKS
PTR
HINFO
MINFO
MX
TEXT
[in] Server
The name of the server to be queried.
[out] QueryDetails
The results of the query.
[out] Error
Text description of an error if one occured.
Return Value
Return value of zero indicates no error occured. A value of 1 means the server name could not be resolved. An error of 2 indicates the Type of request was unknown.
Example
See {installation directory}\Checks\VBScript\CheckProcess.vbs