Skip to content

fix(rules): a link to a reserved or invalid domain suffix is reported as "not requested", and the pass message says all links work when some were not verified #1740

Closed

Description

@nc9

Corrected 2026-11-11 after a second test: the first version of this issue said an ordinary non-resolving domain is treated this way. It is not. A non-resolving name on a real TLD is reported as broken ("domain does not exist"). The problem is narrower, and described below.

Reproduced on the public demo site nutshop.squirrelscan.com (repo squirrelscan/nut-shop) with three of its external-link faults on. A cloud audit's links/broken-external-links result had these checks:

  • warn broken-external-links: "1 broken external link(s): 1 failed", listing https://gone.nutshop-fault.squirrelscan.com/ with the error "domain does not exist". Correct.
  • info refused-external-links: "1 external link(s) point at a private, link-local or cloud metadata address, or a name public DNS does not resolve, so they were not requested and their status was not checked", listing https://nut-supplier.invalid/.
  • With only the .invalid link on the site, the main check passes with "All 18 external link(s) are working".

Two problems:

  1. A link to a reserved or non-existent suffix (.invalid, .test, .example, or a suffix that is not a TLD at all) is dead for every visitor. It is reported in a check written for addresses the audit refuses to request for safety (private, loopback, link-local, cloud metadata), whose status really is unknown. The reader is told the link "was not checked", not that it cannot work. The audit separately flags it as a development host reference, which is right, but the link result should say it is broken too.

  2. The pass message says all external links are working while some links were refused, are awaiting confirmation or could not be verified. It should state what was verified.

Expected: a link whose host can never resolve is reported as broken with a reason that says so; the refused check covers only addresses refused for safety; the pass message counts only what was verified.

Acceptance Criteria

  • A link to a host under a reserved or invalid suffix is reported as broken by links/broken-external-links, with a reason such as "no such domain suffix", and is not listed under refused-external-links.
  • refused-external-links covers only private, loopback, link-local and metadata addresses, and its message no longer mentions DNS.
  • A non-resolving name on a real TLD is still reported as broken with "domain does not exist" (a regression test for today's behaviour).
  • A resolver failure (SERVFAIL or timeout) is "could not verify", not broken.
  • The main check's pass message states how many links were verified working out of how many were found, and never says all links are working when any were refused, unverified or awaiting confirmation.
  • The rule's solution text for a dead domain says that a lapsed domain can be re-registered by a third party.
  • Tests cover: a reserved suffix, a non-TLD suffix, NXDOMAIN on a real TLD, a resolver timeout, and a private address.

Activity

  1. added
    bug
    size: M
    rules
    on Nov 11, 2026
  2. added theissue type on Nov 11, 2026
  3. changed the title [-]fix(rules): a link to a host that does not resolve is reported as "not requested", not as broken[/-] [+]fix(rules): a link to a reserved or invalid domain suffix is reported as "not requested", and the pass message says all links work when some were not verified[/+] on Nov 11, 2026
  4. nc9 commented on Nov 12, 2026

    @nc9
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrulessize: M

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions