change hostname and edit settings

Hello to all,

I am posting this topic regarding a few changes that i need to do in my server, i have concluded well the last topic created thanks to a few users contributions (

Right now i need to change the hostname that i have in my server since is not the one i want to use and i think some functions are not working so well right now, i have virtualmin installed, updated.

I am not sure were ican perform this changes since i have already a few websites running inside of it. I am afraid that some changes may destroy all the work done till now. Can anyone experienced the same thing? And can you guide me to a solution?

Thanks a lot in advance

  • wormsunited

You won’t lose everything you’ve done this far :slight_smile:

All you need to do is go into Webmin -> Networking -> Network Configuration -> Hostname and DNS Client, and you can change your hostname there.

Once you do that, you’d then want to verify that in /etc/hosts, that your hostname is correctly updated there. You would also want to make sure that in /etc/postfix/, the “mydestination” line should contain your hostname.


hi Guys,

i just change my Hostname.
Using Hostname worked!

root@hetzner ~ # hostname
root@hetzner ~ # hostname -f

My Question is now, what name must I enter in /etc/mailname and /etc/postfix/ (myhostname and mydesktination)?
The FQDN or the hostname?