Fix DNS resolution

This commit is contained in:
2025-11-03 21:52:15 -05:00
parent b7d76be6ce
commit b17d132497
2 changed files with 12 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -eux
install -d -m 755 -o root -g root /etc/systemd/network
cat > /etc/systemd/network/lan0.network << 'EOF'
@@ -17,3 +18,6 @@ mv /etc/network/interfaces /etc/network/interfaces.save
mv /etc/network/interfaces.d /etc/network/interfaces.d.save
systemctl enable systemd-networkd
systemctl disable networking
printf "nameserver %s\n" 9.9.9.9 8.8.8.8 >/etc/resolv.conf
cat /etc/resolv.conf