Last active
May 28, 2023 06:58
-
-
Save edoardottt/d4eb0e1ed2bd77d08a5c171a06250133 to your computer and use it in GitHub Desktop.
Set persistent DNS on Ubuntu
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
# 1. Set global DNS settings using systemd-resolved | |
# 2. | |
sudo systemctl restart systemd-resolved | |
# 3. | |
sudo rm -f /etc/resolv.conf | |
# 4. | |
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf | |
# See: | |
# https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1774632 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment