Set Cloudflare as the default DNS with Google as backup

Solves a bunch of problems with shitty local DNS
This commit is contained in:
David Heinemeier Hansson 2025-08-08 18:00:30 +02:00
parent 32e091d2e5
commit 61032ba4d0
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,4 @@
[Resolve]
DNS=1.1.1.1
FallbackDNS=8.8.8.8
DNSStubListener=yes

View File

@ -26,6 +26,9 @@ sudo gpgconf --launch dirmngr || true
sudo sed -i 's|^\(auth\s\+required\s\+pam_faillock.so\)\s\+preauth.*$|\1 preauth silent deny=10 unlock_time=120|' "/etc/pam.d/system-auth"
sudo sed -i 's|^\(auth\s\+\[default=die\]\s\+pam_faillock.so\)\s\+authfail.*$|\1 authfail deny=10 unlock_time=120|' "/etc/pam.d/system-auth"
# Set Cloudflare as primary DNS (with Google as backup)
sudo cp ~/.local/share/omarchy/default/systemd/resolved.conf /etc/systemd/
# Set common git aliases
git config --global alias.co checkout
git config --global alias.br branch