Skip to content

Do not require UseSuffixWhenRegistering on every active NIC #134

Description

@ndemou

Problem

HealthTest-DnsSuffixBaseline requires both RegisterThisConnectionsAddress and UseSuffixWhenRegistering to be true on every active interface.

File: health-tests/HealthTest-DnsSuffixBaseline.ps1, lines 69-78.

UseSuffixWhenRegistering controls registration of the connection-specific suffix. It does not need to be true when normal registration under the computer's primary DNS suffix is sufficient. The usual false value can therefore be reported as failure.

Simple example

A domain member has:

  • primary DNS suffix contoso.com;
  • an empty connection-specific suffix;
  • RegisterThisConnectionsAddress=True;
  • UseSuffixWhenRegistering=False.

The computer can still register its normal host.contoso.com record, but the test reports DNS registration failure.

Expected behavior

Require RegisterThisConnectionsAddress where appropriate. Evaluate UseSuffixWhenRegistering only when a connection-specific suffix is configured and policy requires that extra suffix to be registered.

Acceptance criteria

  • The example above does not fail solely because UseSuffixWhenRegistering is false.
  • A required connection-specific registration can still be checked.
  • Adapter exclusions and expectations are documented.
  • Unit tests cover empty, domain-matching, and custom connection-specific suffixes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions