diff --git a/bin/omarchy-setup-dns b/bin/omarchy-setup-dns index 119ab40..472b555 100755 --- a/bin/omarchy-setup-dns +++ b/bin/omarchy-setup-dns @@ -37,8 +37,6 @@ EOF DHCP) sudo tee /etc/systemd/resolved.conf >/dev/null <<'EOF' [Resolve] -DNS= -FallbackDNS= DNSOverTLS=no EOF diff --git a/migrations/1757361127.sh b/migrations/1757361127.sh new file mode 100644 index 0000000..5c23e00 --- /dev/null +++ b/migrations/1757361127.sh @@ -0,0 +1,8 @@ +echo "Fix DHCP DNS to allow VPN DNS override" + +if [ -f /etc/systemd/resolved.conf ]; then + if grep -q "^DNS=$" /etc/systemd/resolved.conf && grep -q "^FallbackDNS=$" /etc/systemd/resolved.conf; then + sudo sed -i '/^DNS=$/d; /^FallbackDNS=$/d' /etc/systemd/resolved.conf + sudo systemctl restart systemd-resolved + fi +fi \ No newline at end of file