Skip to content

Make mdns responder case-insensitive #220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

abrender
Copy link
Contributor

From the RFC:

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.

Copy link

codecov bot commented Mar 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.55%. Comparing base (61c2740) to head (1e8d671).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #220      +/-   ##
==========================================
+ Coverage   62.22%   62.55%   +0.32%     
==========================================
  Files           1        1              
  Lines         916      916              
==========================================
+ Hits          570      573       +3     
+ Misses        267      265       -2     
+ Partials       79       78       -1     
Flag Coverage Δ
go 62.55% <100.00%> (+0.32%) ⬆️
wasm 0.00% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@abrender abrender force-pushed the master branch 12 times, most recently from d73e390 to 1548c55 Compare March 12, 2025 02:22
@abrender
Copy link
Contributor Author

Ready for review :) Sorry for the noisy checks.

@abrender abrender force-pushed the master branch 2 times, most recently from d802f8e to 090e2fd Compare March 12, 2025 14:30
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.
@abrender
Copy link
Contributor Author

@Sean-Der - thanks so much for your work on this project. Any objection or concerns with merging this PR?

(PS - The 2 tests that I've added both fail at master, but succeed with this PR).

All the best,
Avi B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant