Make mdns responder case-insensitive.
authorAvi <[email protected]>
Tue, 11 Mar 2025 02:18:19 +0000 (22:18 -0400)
committerFelix Fietkau <[email protected]>
Wed, 28 May 2025 22:28:57 +0000 (00:28 +0200)
commitcecbe1c0caaee3de70bea0413b9f90d4b5b5ca36
tree26d698b648c2293158f0f0232b57ba9df55111a4
parent695ac3708aa014aee9be77f91da2699eef1b4c66
Make mdns responder case-insensitive.

From [the RFC](https://github.com/openwrt/mdnsd/blob/master/rfc6762.txt#L2532-L2550):

>  The simple rules for case-insensitivity in Unicast DNS [RFC1034]
   [RFC1035] also apply in Multicast DNS; that is to say, in name
   comparisons, the lowercase letters "a" to "z" (0x61 to 0x7A) match
   their uppercase equivalents "A" to "Z" (0x41 to 0x5A).  Hence, if a
   querier issues a query for an address record with the name
   "myprinter.local.", then a responder having an address record with
   the name "MyPrinter.local." should issue a response.  No other
   automatic equivalences should be assumed.

Fixes #15.

Signed-off-by: Felix Fietkau <[email protected]>
dns.c