mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
fix(network): update systemd-resolved config to use settings-style config
This commit is contained in:
parent
898bb7c910
commit
2da909f2f5
2 changed files with 7 additions and 8 deletions
|
|
@ -35,10 +35,10 @@ in
|
|||
|
||||
services.resolved = {
|
||||
enable = (cfg.dns == "systemd-resolved");
|
||||
llmnr = mkForce "false"; # https://www.blackhillsinfosec.com/how-to-disable-llmnr-why-you-want-to/
|
||||
dnssec = "false"; # Causes issues with masquerading DNS
|
||||
extraConfig = myLib.config.toSystemd {
|
||||
"DNS" = [
|
||||
settings.Resolve = {
|
||||
LLMNR = mkForce false; # https://www.blackhillsinfosec.com/how-to-disable-llmnr-why-you-want-to/
|
||||
DNSSEC = false;
|
||||
DNS = [
|
||||
# cloudflare-dns.com
|
||||
"1.1.1.1"
|
||||
"2606:4700:4700::1111"
|
||||
|
|
|
|||
|
|
@ -154,10 +154,9 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
services.resolved.extraConfig =
|
||||
''
|
||||
mDNS=no
|
||||
'';
|
||||
services.resolved.settings.Resolve = {
|
||||
MulticastDNS = false;
|
||||
};
|
||||
|
||||
|
||||
services.nginx = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue