Score:0

Temporary failure in name resolution continuously

in flag

OS: Ubuntu 20.04 Hypervisor: VirtualBox Connectivity: wired ethernet connection this is the result of "netplan & resolve.conf" and this is for "IP a show"

I'm getting this error continuously, only rebooting the system resolves the problem but I don't want to reboot the sys every time, so how can I fix this problem?

Score:1
cn flag

I recommend that you amend the netplan file to:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s3:
      addresses:
        - 192.168.1.40/24
      nameservers:
        addresses: [8.8.8.8, 8.8.4.4]
      routes:
        - to: default
          via: 192.168.1.1

Follow with:

sudo netplan generate
sudo netplan apply

Next, do:

cd
sudo rm -f /etc/resolv.conf 
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf

Is there any improvement?

Ahmed sherif avatar
in flag
yes, thank you the problem solved
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.