Hi Team,
I have an VM with Ubuntu OS deployed inside an Instance Groups. The VM hangs most time even when i want to elevate privileges with an error Temporary failure in name resolution.
Here is an sample output.
gcpuser@ubuntu-bastion-asg-9p89:~$ sudo su -
sudo: unable to resolve host ubuntu-bastion-asg-9p89: Temporary failure in name resolution
root@ubuntu-bastion-asg-9p89:~#
Usually this takes 5-10min and gives above error.
Any help or suggestion is appreciated.
Solved! Go to Solution.
Hi @SKowshik4614,
Welcome to the Google Cloud Community!
The error message "Temporary failure in name resolution." typically indicates DNS issues, where your VM's hostname is not configured correctly [1].
Some common causes of this issue include:
/etc/hosts
or /etc/resolve.conf
.You may check this Stack Overflow thread to see if it solves your problem. Thanks.
[1]. https://askubuntu.com/questions/1045278/ubuntu-server-18-04-temporary-failure-in-name-resolution
Hi @SKowshik4614,
Welcome to the Google Cloud Community!
The error message "Temporary failure in name resolution." typically indicates DNS issues, where your VM's hostname is not configured correctly [1].
Some common causes of this issue include:
/etc/hosts
or /etc/resolve.conf
.You may check this Stack Overflow thread to see if it solves your problem. Thanks.
[1]. https://askubuntu.com/questions/1045278/ubuntu-server-18-04-temporary-failure-in-name-resolution
Hi @lawrencenelson , the above worked for me, thank you so much for the help.