Response Event

Fires after a DNS query.

Syntax

ANSI (Cross Platform)
virtual int FireResponse(DNSResponseEventParams *e);
typedef struct {
int RequestId;
const char *Domain;
int StatusCode;
const char *Description;
int Authoritative; int reserved; } DNSResponseEventParams; Unicode (Windows) virtual INT FireResponse(DNSResponseEventParams *e);
typedef struct {
INT RequestId;
LPCWSTR Domain;
INT StatusCode;
LPCWSTR Description;
BOOL Authoritative; INT reserved; } DNSResponseEventParams;
- (void)onResponse:(int)requestId :(NSString*)domain :(int)statusCode :(NSString*)description :(BOOL)authoritative;
#define EID_DNS_RESPONSE 2

virtual INT IPWORKS_CALL FireResponse(INT &iRequestId, LPSTR &lpszDomain, INT &iStatusCode, LPSTR &lpszDescription, BOOL &bAuthoritative);

Remarks

The Response event will fire after a call to Query. The RequestId parameter contains the request id associated with the original query. Domain is the domain of the query. The Authoritative parameter is true if the response is from an authoritative name server. If there is an error returned by the server, StatusCode and Description provide them.

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.

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