Skip to content

Comments

Adds handling for RFC 9156#22095

Closed
ncode wants to merge 3 commits intohashicorp:mainfrom
ncode:juliano/dns_qname
Closed

Adds handling for RFC 9156#22095
ncode wants to merge 3 commits intohashicorp:mainfrom
ncode:juliano/dns_qname

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 closed this by deleting the head repository Mar 17, 2025
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