Skip to content

fix(mdns): put srv/txt records in additional section for ptr queries #813

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

tanyanquan
Copy link
Contributor

@tanyanquan tanyanquan commented May 8, 2025

Description

This PR enforces a requirement in RFC 6763 Section 12.1 regarding SRV and TXT records in response to PTR queries: such records should be placed in the additional section and not answer section.

Testing

This change is necessary to pass Thread certification test cases related to mDNS discovery of v1.3/v1.4 TXT records.


Checklist

Before submitting a Pull Request, please ensure the following:

  • 🚨 This PR does not introduce breaking changes.
  • All CI checks (GH Actions) pass.
  • Documentation is updated as needed.
  • Tests are updated or added as necessary.
  • Code is well-commented, especially in complex areas.
  • Git history is clean — commits are squashed to the minimum necessary.

@david-cermak david-cermak self-assigned this May 28, 2025
Copy link
Collaborator

@david-cermak david-cermak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for posting this fix! the change LGTM.

Sorry for such a slow review, I wanted to accept this change after the refactor (in #776), but I think we can merge this first and then forward-port the changes.

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

Successfully merging this pull request may close these issues.

None yet

2 participants