Last active
May 31, 2024 14:40
-
-
Save jhowbhz/424e99f33f918a13475d2946a9455bab to your computer and use it in GitHub Desktop.
Ubuntu Network Failure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Se você está enfrentando erros de DNS, experimente fazer o seguinte | |
# Erro: ping: google.com.br: Temporary failure in name resolution | |
# Tente isso | |
ping -c 4 8.8.8.8 | |
# Se der ok, cheque o status | |
sudo systemctl status systemd-resolved | |
# Altere o DNS | |
sudo nano /etc/systemd/resolved.conf | |
[Resolve] | |
DNS=8.8.8.8 8.8.4.4 | |
FallbackDNS=1.1.1.1 1.0.0.1 | |
# Tudo certo. | |
sudo systemctl start systemd-resolved | |
# Inicie automaticamente | |
sudo systemctl enable systemd-resolved | |
systemd-resolve --status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment