From 4ab3ff8349d3939a98992ee1b17e1967c442cd16 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 8 Aug 2025 18:05:10 +0200 Subject: [PATCH] Set default DNS to Cloudflare (backup to Google) and tune MTU probing for more reliable SSH --- migrations/1754668999.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 migrations/1754668999.sh diff --git a/migrations/1754668999.sh b/migrations/1754668999.sh new file mode 100644 index 00000000..8a4dcfb5 --- /dev/null +++ b/migrations/1754668999.sh @@ -0,0 +1,8 @@ +echo "Set default DNS to Cloudflare (backup to Google) and tune MTU probing for more reliable SSH" + +# Set Cloudflare as primary DNS (with Google as backup) +sudo cp ~/.local/share/omarchy/default/systemd/resolved.conf /etc/systemd/ +sudo systemctl restart systemd-resolved + +# Solve common flakiness with SSH +echo "net.ipv4.tcp_mtu_probing=1" | sudo tee -a /etc/sysctl.d/99-sysctl.conf