Error 500: hostname lookup 'pve2' failed - failed to get address info for: pve2: Name or service not known

NE78

Member
Aug 2, 2022
39
5
13
I built a second PVE and named it pve2; it's now the primary. I had some VMs that I want to trash but can't. I get the following:
Error 500: hostname lookup 'pve2' failed - failed to get address info for: pve2: Name or service not known
/etc/hosts
Code:
GNU nano 5.4                                              /etc/hosts                                                       
127.0.0.1 localhost.localdomain localhost
10.20.20.5 pve pve.network.lan

Code:
root@pve:~# hostnamectl status
   Static hostname: pve

How can I resolve this?

Thank you!
 
  • Like
Reactions: Riccardo_Fast
I would add the new node into DNS and/or hosts file

Note: The hosts should be as the following:

Code:
127.0.0.1 localhost.localdomain localhost
10.20.20.5 pve.network.lan pve
 
This is the only Node now, the hosts file currently shows what you had suggested.