Systemd/resolved: Difference between revisions

Hexa (talk | contribs)
mNo edit summary
Onny (talk | contribs)
Line 7: Line 7:
The following configuration configures resolved daemon to use the public DNS resolver provided by [https://www.cloudflare.com/learning/dns/what-is-1.1.1.1/ Cloudflare]. DNSSEC and DNS-over-TLS is enabled for authenticity and encryption.
The following configuration configures resolved daemon to use the public DNS resolver provided by [https://www.cloudflare.com/learning/dns/what-is-1.1.1.1/ Cloudflare]. DNSSEC and DNS-over-TLS is enabled for authenticity and encryption.


<syntaxHighlight lang="nix">
<syntaxhighlight lang="nix">
networking.nameservers = [
  "1.1.1.1#one.one.one.one"
  "1.0.0.1#one.one.one.one"
];
 
services.resolved = {
services.resolved = {
   enable = true;
   enable = true;
Line 18: Line 13:
   domains = [ "~." ];
   domains = [ "~." ];
   fallbackDns = [
   fallbackDns = [
     "1.1.1.1#one.one.one.one"
     "1.1.1.1"
     "1.0.0.1#one.one.one.one"
     "1.0.0.1"
   ];
   ];
   dnsovertls = "true";
   dnsovertls = "true";
};
};
</syntaxHighlight>
</syntaxhighlight>
[[Category:systemd]]
[[Category:systemd]]
[[Category:Networking]]
[[Category:Networking]]