Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/resolvconf: add option "trust-ad" when useLocalResolver is enabled #296584

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

Schweber
Copy link
Contributor

Description of changes

Closes #295804

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@Schweber
Copy link
Contributor Author

@picnoir

Copy link
Contributor

@nbdd0121 nbdd0121 left a comment

Choose a reason for hiding this comment

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

"trust-ad" says that if the recursive DNS resolver says DNSSEC is validated, then trust that it actually does so. This is not the default because doing so would mean that (1) you trust the DNS server and (2) you trust the network path to the DNS resolver (since you can't verify that UDP packets are not tampered with). For local resolver both of them are satisfied.

See also the setting from systemd-resolvd: https://github.com/systemd/systemd/blob/36ca167220eb5d89f69478aeff96f8d0b6ca438b/src/resolve/resolv.conf#L18

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-already-reviewed/2617/1580

@Janik-Haag Janik-Haag merged commit bf69641 into NixOS:master Apr 12, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unbound.enable: add option trust-ad to resolv.conf by default
5 participants