Skip to content
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

Adds handling for RFC 9156 #22095

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

ncode
Copy link
Contributor

@ncode ncode commented Jan 22, 2025

Description

Fixing #6579 by adding qname minimization handling based on rfc9156

This pull request includes improvements to the DNS handling in the agent package, specifically focusing on QNAME minimization as per RFC 9156. The changes include handling partial domain queries and updating the related tests.

Improvements to DNS handling:

  • .changelog/22095.txt: Added a release note indicating the improvement in DNS handling based on RFC 9156.
  • agent/dns.go: Reordered imports for better organization and added handling for potential QNAME minimization queries, returning empty responses for partial domain components. [1] [2]

Updates to tests:

  • agent/dns_test.go: Removed some invalid query tests and added new tests for QNAME minimization, ensuring partial queries return empty success and full queries return actual records. [1] [2]

Links

https://www.rfc-editor.org/rfc/rfc9156.txt

PR Checklist

  • updated test coverage
  • external facing docs updated
  • appropriate backport labels added
  • not a security concern

@ncode ncode requested a review from a team as a code owner January 22, 2025 10:55
@ncode ncode force-pushed the juliano/dns_qname branch from 2082e0b to 097c768 Compare January 23, 2025 09:43
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