change hostname and edit settings

3 posts / 0 new
Last post
#1 Fri, 12/21/2012 - 11:42
wormsunited

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 (https://www.virtualmin.com/node/24481).

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

Fri, 12/21/2012 - 12:38
andreychek

You won't lose everything you've done this far :-)

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/main.cf, the "mydestination" line should contain your hostname.

-Eric

Thu, 05/29/2014 - 11:35
SkaFan

hi Guys,

i just change my Hostname.
Using Hostname worked!

root@hetzner ~ # hostname
hetzner
root@hetzner ~ # hostname -f
hetzner.oarp.de

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

Topic locked