Skip to content

zonemaster-cli outputs no message at all if name server given by --ns lacks required glue #402

@marc-vanderwal

Description

@marc-vanderwal

On current develop, if zonemaster-cli is given fake delegation by means of --ns, the name server is in-bailiwick but is missing glue, then I get no error message at all:

$ zonemaster-cli --show-testcase --no-ipv6 --test basic/basic01 zonemaster.net --ns 'ns1.zonemaster.net'
  \
Seconds Level    Testcase       Message
======= ======== ============== =======

Using git bisect, it seems that commit 69b71a6 is the one introducing the problem. If I check out its ancestor commit (2476edb), then I get the following output, which seems more correct:

$ zonemaster-cli --show-testcase --no-ipv6 --test basic/basic01 zonemaster.net --ns 'ns1.zonemaster.net'
Seconds Level    Testcase       Message
======= ======== ============== =======
   1.15 ERROR    Unspecified    The fake delegation of domain zonemaster.net includes an in-zone name server ns1.zonemaster.net without mandatory glue (without IP address).
   0.00 INFO     Unspecified    Using version v6.0.0 of the Zonemaster engine.
   0.00 INFO     Basic01        The zone "zonemaster.net" is found.
   0.01 INFO     Basic01        This is a test of an undelegated domain so finding the parent zone is disregarded.
   0.21 CRITICAL Basic02        There is no working name server for "zonemaster.net" so it is unreachable.
   0.21 ERROR    Basic02        Name server "ns1.zonemaster.net" cannot be resolved into an IP address.

Update: with --raw added to the first command line, messages do appear, so it really is related to the translator.

Metadata

Metadata

Labels

T-BugType: Bug in software or error in test case description

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions