Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

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.  

Solved Solved
1 2 3,653
1 ACCEPTED 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:

  • 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

View solution in original post

2 REPLIES 2

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

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