Set default DNS to Cloudflare (backup to Google) and tune MTU probing for more reliable SSH

This commit is contained in:
David Heinemeier Hansson 2025-08-08 18:05:10 +02:00
parent 9ae0af7b21
commit 4ab3ff8349

8
migrations/1754668999.sh Normal file
View File

@ -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