VM inside an Instance Group hangs

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.

1 Like

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:

  • Improper configuration of the /etc/hosts or /etc/resolve.conf .
  • A misconfigured DNS server.
  • Firewall rules that prevent DNS traffic (port 53).

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

2 Likes

Hi @lawrencenelson , the above worked for me, thank you so much for the help.

2 Likes