Query Method

Query a Domain.

Syntax

ANSI (Cross Platform)
int Query(const char* lpszDomain);

Unicode (Windows)
INT Query(LPCWSTR lpszDomain);
- (void)query:(NSString*)domain;
#define MID_DNS_QUERY 6

IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_DNS_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

Remarks

This method will query the host Domain for any records of the type in QueryType. After the query, RequestId is the identifier corresponding to the request. Once the query is complete, a single Response event will fire, and the following properties will contain the results:

StatusCodeThe success or error code of the DNS query.
StatusA standard string interpretation of StatusCode.
RecordsThe Records in the last DNS response.
RecordSourceThe source (type) of records being listed.

Error Handling (C++)

This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 C++ Edition - Version 20.0 [Build 8307]