Skip to content

Instantly share code, notes, and snippets.

@febritecno
Last active November 3, 2021 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save febritecno/8ead0e40e25630f48c705aef6f739b1d to your computer and use it in GitHub Desktop.
Save febritecno/8ead0e40e25630f48c705aef6f739b1d to your computer and use it in GitHub Desktop.
Fix linux error connection dns (valet)
sudo chown -R $(whoami) /opt/homebrew /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew/locks /opt/homebrew/var/log
chmod u+w /opt/homebrew /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew/locks /opt/homebrew/var/log
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