diff options
| author | tv <tv@krebsco.de> | 2026-11-16 17:12:00 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-16 18:14:31 +0100 |
| commit | 0c94611b7a5f6c564d4cc15554fc2ac8b442aba6 (patch) | |
| tree | 61cf58524463c1717fd9c0237327007b5c7bb392 /default.nix | |
| parent | f17f88f1f53247ec86a472105cf94cfc664cd1b8 (diff) | |
use the host's DNS resolver
The guest's resolv.conf and the DHCP server now point at 172.16.0.1, so
the host's resolver has to answer there.
Diffstat (limited to 'default.nix')
| -rw-r--r-- | default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/default.nix b/default.nix index b501b1a..fc2d6e0 100644 --- a/default.nix +++ b/default.nix @@ -53,7 +53,8 @@ let networking.useDHCP = false; networking.resolvconf.enable = false; - environment.etc."resolv.conf".text = "nameserver 9.9.9.9\n"; + # The host's resolver, see host.nix. + environment.etc."resolv.conf".text = "nameserver 172.16.0.1\n"; systemd.network.enable = true; systemd.network.wait-online.enable = false; systemd.network.networks.eth = { |
