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

Fix alias (CNAME) handling in Address03 test case #1432

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

marc-vanderwal
Copy link
Contributor

@marc-vanderwal marc-vanderwal commented Feb 24, 2025

Purpose

This PR fixes a bug in the implementation of Address03, where the test case could fail to map an IP address to a domain name if a reverse query (PTR) for an IP address returns an alias (CNAME) in a different zone.

NOTE: This PR is in draft status because zonemaster/zonemaster#1354 is not merged yet.

Context

Fixes #1431.

Changes

How to test this PR

Unit tests have been added, and should pass.

Add a proper unit test for the Address03 test case. Currently, it fails
because of PTR-IS-GOOD-CNAME-2, because there is a bug in this scenario,
but we’re going to fix it in a follow-up commit.

A stale test, involving torsas.se which formerly had classless
in-addr.arpa delegation, is disabled, because it isn’t classless
in-addr.arpa anymore.
The recent refactoring of Zonemaster::Engine::Recursor makes the special
handling of CNAME resource records entirely redundant, while introducing
new bugs.

In fact, these few lines caused aliases to be no longer properly
followed if they point out of the zone, which often happens with
classless in-addr.arpa delegations. Removing this special case is enough
to fix the problem.
@marc-vanderwal marc-vanderwal added A-TestCase Area: Test case specification or implementation of test case V-Patch Versioning: The change gives an update of patch in version. labels Feb 24, 2025
@marc-vanderwal marc-vanderwal added this to the v2025.1 milestone Feb 24, 2025
@marc-vanderwal marc-vanderwal linked an issue Feb 24, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-TestCase Area: Test case specification or implementation of test case V-Patch Versioning: The change gives an update of patch in version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Address03 does not follow out-of-zone aliases (CNAME)
1 participant