Skip to content

Commit 9937f13

Browse files
florianjacobMic92
authored andcommittedJul 13, 2017
resolved: use resolved's static resolv.conf (#27144)
because it is upstream's recommended mode of operation: https://www.freedesktop.org/software/systemd/man/systemd-resolved.html#/etc/resolv.conf
1 parent b14bcd8 commit 9937f13

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎nixos/modules/config/networking.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ in
223223
'';
224224

225225
} // optionalAttrs config.services.resolved.enable {
226-
"resolv.conf".source = "/run/systemd/resolve/resolv.conf";
226+
# symlink the static version of resolv.conf as recommended by upstream:
227+
# https://www.freedesktop.org/software/systemd/man/systemd-resolved.html#/etc/resolv.conf
228+
"resolv.conf".source = "${pkgs.systemd}/lib/systemd/resolv.conf";
227229
} // optionalAttrs (config.services.resolved.enable && dnsmasqResolve) {
228230
"dnsmasq-resolv.conf".source = "/run/systemd/resolve/resolv.conf";
229231
};

0 commit comments

Comments
 (0)
Please sign in to comment.