Platforms to show: All Mac Windows Linux Cross-Platform

Back to DNSServiceQueryRecordMBS class.

DNSServiceQueryRecordMBS.ServiceQueryRecord(flags as Integer, InterfaceIndex as Integer, ErrorCode as Integer, Fullname as string, rrType as Integer, rrClass as Integer, Length as Integer, Data as string, ttl as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event DNS MBS Network Plugin 16.1 ✅ Yes ✅ Yes ❌ No ❌ No
The event called when data is received for DNS query.

flags: Possible values are kFlagsMoreComing and kFlagsAdd. The Add flag is NOT set for PTR records with a ttl of 0, i.e. "Remove" events.
InterfaceIndex: The interface on which the query was resolved.
errorCode: Will be kErr_NoError on success, otherwise will indicate the failure that occurred. Other parameters are undefined if errorCode is nonzero.
fullname: The resource record's full domain name.
rrtype: The resource record's type (e.g. kType_PTR, kType_SRV, etc)
rrclass: The class of the resource record (usually kClass_IN).
Length: The length, in bytes, of the resource record rdata.
Data: The raw record data of the resource record.
ttl: If the client wishes to cache the result for performance reasons, the TTL indicates how long the client may legitimately hold onto this result, in seconds. After the TTL expires, the client should consider the result no longer valid, and if it requires this data again, it should be re-fetched with a new query. Of course, this only applies to clients that cancel the asynchronous operation when they get a result. Clients that leave the asynchronous operation running can safely assume that the data remains valid until they get another callback telling them otherwise.

Some examples using this event:

The items on this page are in the following plugins: MBS Network Plugin.


The biggest plugin in space...