const char* ext_dns_message_query_name ( extDnsCtx ctx,
extDnsMessage message 
)

Convenient function to get the query name being asked in the message (no matter if it is a query or reply).

Parameters
ctxThe context where the operation will take place.
messageThe message where the query name is being asked.
Returns
The query name value or NULL if it fails.

References _extDnsQuestion::qname, and _extDnsMessage::questions.