nadzoring.commands.dns_commands module

DNS-related CLI commands.

nadzoring.commands.dns_commands._expand_record_types(record_types: tuple[str, ...]) list[str][source]

Expand a tuple of CLI record type tokens into a concrete list.

Replaces the special ALL token with every queryable record type (i.e. all types except PTR).

Parameters:

record_types – Tuple of record type strings as received from Click.

Returns:

Flat list of concrete DNS record type strings.

nadzoring.commands.dns_commands._make_pbar(total: int, desc: str, unit: str, *, quiet: bool) tqdm | None[source]

Create a tqdm progress bar or return None when in quiet mode.

Parameters:
  • total – Total number of steps.

  • desc – Initial description label.

  • unit – Unit label for the progress bar.

  • quiet – When True, no progress bar is created.

Returns:

A tqdm instance, or None if quiet is True.