Temporary Failure in name resolution?
Yes, somehow it is a default bug on ubuntu. At least for me. Every new install it happens. Always.
The fix is the following: (stolen from https://askubuntu.com/)
It’s likely your default DNS server is pointing to an IP address that is not capable of resolving DNS queries. You should check the DNS settings in the file that /etc/resolv.conf is pointing to. When you go to that file (/var/run/systemd/resolve/resolve.conf), look at the IP that is right next to the keyword namespace. You should set it to your router’s IP address (which can be found with the command route -n. Look for the gateway column and take the one that’s not 0.0.0.0) or you can also set it to a public DNS server such as 1.1.1.1, 8.8.8.8 etc.
EDIT: Please follow these instructions:
First you find and delete resolv.conf from /etc folder. Yes, delete. It’s a simlink, you should delete it before creating a new one.
Then, follow:
vi /etc/resolv.confAdd the following: nameserver 1.1.1.1
Esc + :wq and restart the service:
sudo systemctl restart systemd-resolved.service
Then try to access the internet again. If it still doesn’t work, reboot the system and try again. That should solve your problem.
Filed under: Hints,iT - @ 2025-10-10 14:07
Tags: dns, Linux, netplan, Network-manager, Ubuntu