Set Cloudflare as the default DNS with Google as backup
Solves a bunch of problems with shitty local DNS
This commit is contained in:
parent
32e091d2e5
commit
61032ba4d0
4
default/systemd/resolved.conf
Normal file
4
default/systemd/resolved.conf
Normal file
@ -0,0 +1,4 @@
|
||||
[Resolve]
|
||||
DNS=1.1.1.1
|
||||
FallbackDNS=8.8.8.8
|
||||
DNSStubListener=yes
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user