mirror of
https://github.com/fosrl/olm.git
synced 2026-05-06 19:01:02 -05:00
[PR #96] [CLOSED] fix(dns): ensure AAAA query return nodata response #465
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/olm/pull/96
Author: @LaurenceJJones
Created: 2/26/2026
Status: ❌ Closed
Base:
main← Head:fix/dns-nodata-response📝 Commits (1)
06f3c0afix(dns): ensure AAAA records return nodata response📊 Changes
2 files changed (+195 additions, -0 deletions)
View changed files
📝
dns/dns_proxy.go(+17 -0)➕
dns/dns_proxy_test.go(+178 -0)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
fix: https://github.com/orgs/fosrl/discussions/2533
Return authoritative NOERROR with an empty answer (NODATA) when a local name exists only for the opposite A/AAAA type, instead of forwarding upstream (which is where the NXDOMAIN was being responded from). Add coverage for A-only, AAAA-only, wildcard matches, and non-existent domains to preserve upstream NXDOMAIN behavior.
How to test?
Added golang tests to ensure correct behavior is performed, however, for manual testing you can spin up an olm container and an alpine container that uses the same network namespace. Using tools outlined in the issue should not fail dns resolution for any alias entries.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.