:GetRecord()
Class
Syntax
:GetRecord(cHost, [nRecType]) -> cRecordData
Parameters
|
|
cHost |
Host name to get information for. |
|
|
nRecType |
Record Type. See Constants below. Defaults to DNS_RECORD_ADDRESS |
Return
Return record data for the current host
Description
Retrieves DNS Record data for the specified Host.
The following record types are recognized:
|
|
DNS_RECORD_ADDRESS |
Host address |
|
|
DNS_RECORD_NS |
Authoritative nameserver |
|
|
DNS_RECORD_CNAME |
Cannonical name (alias) |
|
|
DNS_RECORD_WKS |
Well known services |
|
|
DNS_RECORD_PTR |
Domain name |
|
|
DNS_RECORD_HINFO |
Host information |
|
|
DNS_RECORD_MINFO |
Mailbox information |
|
|
DNS_RECORD_MX |
Mail exchange host |
|
|
DNS_RECORD_UINFO |
User information |
See Also
:GetHostByAddress(), :GetHostByName(), :GetHostName(), :GetHostAddress(), :GetHostInfo(), :GetAllRecords(), :GetHostServices()