Last active
November 3, 2021 16:31
-
-
Save febritecno/8ead0e40e25630f48c705aef6f739b1d to your computer and use it in GitHub Desktop.
Fix linux error connection dns (valet)
This file contains 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
usually happens because of deleting valet in linux | |
1.disable resolved DNS | |
sudo systemctl disable systemd-resolved.service | |
2. stop resolved DNS | |
sudo systemctl stop systemd-resolved.service | |
3. delete resolv DNS | |
sudo rm /etc/resolv.conf | |
4. add DNS google | |
nameserver 8.8.8.8 | |
5. enable again DNS resolv | |
sudo systemctl enable systemd-resolved.service | |
6. check ping google.com | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment