Update CNAME resolution#1518
Conversation
- `Zonemaster::Engine::Recursor::_resolve_cname()` now returns undef when the CNAME resolution fails, along with a new message tag: `CNAME_UNRESOLVABLE` - Update unit tests: move the content of scenario `TOO-LONG-CNAME-CHAIN` to a new scenario `TOO-MANY-CNAME`, and update scenario `TOO-LONG-CNAME-CHAIN` to check for tag `CNAME_CHAIN_TOO_LONG` instead
Co-authored-by: Marc van der Wal <103426270+marc-vanderwal@users.noreply.github.com>
|
The I’d suggest a different name for that tag. How about |
It think that is a good suggestion. Should there be another tag, For me |
|
Yes, a In any case, I don’t think the ERROR level is appropriate for these tags because they do not indicate a problem so severe that the zone is unresolvable. |
Purpose
This PR slightly updates the CNAME resolution of Engine's recursor. See the
Changessection below.Updated test scenarios are defined in zonemaster/zonemaster#1477.
Context
zonemaster/zonemaster#1477
Changes
Zonemaster::Engine::Recursor::_resolve_cname()now returns undef when the CNAME resolution fails, along with a new message tag:CNAME_UNRESOLVABLETOO-LONG-CNAME-CHAINto a new scenarioTOO-MANY-CNAME,TOO-LONG-CNAME-CHAINto check for tagCNAME_CHAIN_TOO_LONGinsteadUNRESOLVABLE-CNAMEHow to test this PR
Unit tests are updated and should pass.