Hi,
I'd like to change the hostname of the server after building it. Domain name will remain the same.
I'm running the latest 3.0.0.4 version.
How is it best to change a hostname without rebuilding the server from scratch?
Thanks.
Michael.
Changing hostname of server after building
- shawniverson
- Posts: 3644
- Joined: 13 Jan 2014 23:30
- Location: Indianapolis, Indiana USA
- Contact:
Re: Changing hostname of server after building
This can be done...
Plan to add it to EFA-Configure in a later release...
Here's what you need to do.
1) Change HOSTNAME in /etc/sysconfig/network
2) Change hostnames in /etc/hosts
3) Execute
(without <>)
4) Change Hostname in /etc/MailScanner/MailScanner.conf
5) Change Hostname in /etc/EFA-Config
Reboot
Plan to add it to EFA-Configure in a later release...
Here's what you need to do.
1) Change HOSTNAME in /etc/sysconfig/network
2) Change hostnames in /etc/hosts
3) Execute
Code: Select all
sudo hostname <yourhostname>
4) Change Hostname in /etc/MailScanner/MailScanner.conf
5) Change Hostname in /etc/EFA-Config
Reboot
Re: Changing hostname of server after building
Hi. Thank you so much for this information. Followed precisely and all worked as expected.
Saves quite some time from having to rebuild a server from scratch. Thanks again.
Saves quite some time from having to rebuild a server from scratch. Thanks again.