Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dns: add support for Legacy Unicast Responses
As per RFC 6762 Section 6.7 (Legacy Unicast Responses) "If the source UDP port in a received Multicast DNS query is not port 5353, this indicates that the querier originating the query is a simple resolver such as described in Section 5.1, "One-Shot Multicast DNS Queries", which does not fully implement all of Multicast DNS. In this case, the Multicast DNS responder MUST send a UDP response directly back to the querier, via unicast, to the query packet's source IP address and port. This unicast response MUST be a conventional unicast response as would be generated by a conventional Unicast DNS server; for example, it MUST repeat the query ID and the question given in the query message." Therefore, umdns should not ignore DNS questions coming from non- multicast sources, and also provide question section which is not usually provided in mDNS responses. Signed-off-by: Mohd Husaam Mehdi <[email protected]>
- Loading branch information