Skip to content

hickory-dns: Enable systemd and prometheus-metrics features#511575

Open
jpds wants to merge 3 commits intoNixOS:masterfrom
jpds:hickory-dns-systemd-prometheus-metrics
Open

hickory-dns: Enable systemd and prometheus-metrics features#511575
jpds wants to merge 3 commits intoNixOS:masterfrom
jpds:hickory-dns-systemd-prometheus-metrics

Conversation

@jpds
Copy link
Copy Markdown
Contributor

@jpds jpds commented Apr 19, 2026

Default enable systemd and prometheus-metrics features in hickory-dns. checkFeatures can be removed once hickory-dns/hickory-dns#3599 lands.

Also add an integration test that validates client output against two resolver implementations.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

@jpds jpds requested a review from adamcstephens April 19, 2026 21:59
@jpds jpds force-pushed the hickory-dns-systemd-prometheus-metrics branch 2 times, most recently from 34cb396 to 175f2cb Compare April 19, 2026 22:06
@jpds jpds force-pushed the hickory-dns-systemd-prometheus-metrics branch from 175f2cb to c456109 Compare April 19, 2026 22:09
@nixpkgs-ci nixpkgs-ci Bot requested a review from uninsane April 19, 2026 22:14
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Apr 19, 2026
Copy link
Copy Markdown
Contributor

@uninsane uninsane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we only need to test with one resolver (e.g. only resolve or kdig, but probably not both). otherwise we're blurring the line between testing the nixos service/integration, v.s. testing hickory-dns's internals.

also that parsing of resolve's output looks fragile/liable to break across any update to the package should they change the formatting. i wouldn't parse that unless there's some flag to ask for machine-readable output.

host: str,
query_type: str,
name: str,
expected: typing.Optional[str] = None,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
expected: typing.Optional[str] = None,
expected: str,

this is never called with expected = None AFAICT.

{ pkgs, lib, ... }:

let
cert = pkgs.runCommand "selfSignedCerts" { buildInputs = [ pkgs.openssl ]; } ''
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cert = pkgs.runCommand "selfSignedCerts" { buildInputs = [ pkgs.openssl ]; } ''
cert = pkgs.runCommand "selfSignedCerts" { nativeBuildInputs = [ pkgs.openssl ]; } ''

host: str,
query_type: str,
name: str,
expected: typing.Optional[str] = None,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
expected: typing.Optional[str] = None,
expected: str,

this is never called with expected = None AFAICT.

@cpu
Copy link
Copy Markdown
Contributor

cpu commented May 1, 2026

checkFeatures can be removed once hickory-dns/hickory-dns#3599 lands.

We landed a different fix in hickory-dns/hickory-dns#3611 that should address the issue equivalently.

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

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants