ot::Dns::Client::ResolveService() method
Starts a DNS service instance resolution for a given service instance. The @p aConfig can be `nullptr`. In this case the default config (from `GetDefaultConfig()`) will be used as the config for this query. In a non-`nullptr` @p aConfig, some of the fields can be left unspecified (value zero). The unspecified fields are then replaced by the values from the default config.
Arguments
aInstanceLabel
The service instance label.
aServiceName
The service name (together with @p aInstanceLabel form full instance name).
aCallback
A function pointer that shall be called on response reception or time-out.
aContext
A pointer to arbitrary context information.
aConfig
The config to use for this query.
Return value
kErrorNone Query sent successfully. @p aCallback will be invoked to report the status. kErrorNoBufs Insufficient buffer to prepare and send query. kErrorInvalidArgs @p aInstanceLabel is `nullptr`.