Skip to content

Commit

Permalink
[nixos/server] enable DoT
Browse files Browse the repository at this point in the history
  • Loading branch information
pSub committed Dec 11, 2024
1 parent 54ed573 commit bd3ee91
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions nixos/server/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,19 @@ in {
SystemMaxUse=1G
'';

services.resolved = {
enable = true;
dnssec = "true";
dnsovertls = "true";
domains = [ "~." ]; # use as default interface for all requests
llmnr = "false";
};

networking.hostName = "nixos"; # Define your hostname.
networking.domain = "pascal-wittmann.de";
networking.nameservers = [
"9.9.9.9"
"149.112.112.112"
"9.9.9.9#dns.quad9.net"
"149.112.112.112#dns.quad9.net"
];

networking.firewall.enable = true;
Expand Down

0 comments on commit bd3ee91

Please sign in to comment.