Is it safe to set FQDN for hostname on PVE?

jptechnical

New Member
Mar 17, 2023
11
3
1
Hi there,

I have a couple dozen Proxmox VE servers now, and I am having some trouble keeping them separate, as the hostnames are the same in most cases. I have lots of `pve1` and `pve2`. But I would like to set the hostnames as a FQDN. This would make the full hostname appear as the default name in my tooling.

Would it be safe to run `hostnamectl set-hostname pve1.clientname.corp` for each environment?
 
if you don't use your search domain to reach other devices by hostname, you can put whatever you want in your hostname as it is just a string.

for example, if your machine fqdn is "pve1.mynetwork.net" and your hostname is just "pve1", another machine "otherhost" will resolve to "otherhost.mynetwork.net" which if exists it will work, I'm not sure about the opposite, because if your hostname instead is "pve1.mynetwork.net" it may happen that the resolution will become "pve1.mynetwork.net.mynetwork.net" which is not ideal even if it still works, and it might not.
I'm not 100% sure.

you can try and let us know, worst it happens you change it back and everything you broke starts working again. if you don't use domain resolution like this, you're pretty safe.