Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1308  / 2 Years ago, tue, february 22, 2022, 1:00:19

I just installed Zimbra and I think I screwed up my host name trying to get it to install.



I did get Zimbra installed but the certificate is not working. (that's another topic)



Here is my host file:



127.0.0.1       localhost
127.0.1.1 GreenHornet
xxx.xxx.xxx.85 mydomain.co GreenHornet
xxx.xxx.xxx.85 mydomain.co GreenHornet
xxx.xxx.xxx.85 webmail.mydomain.co GreenHornet

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


Of course the ip and domain name was changed.



And this is my hostname file:



mydomain.co


I wanted the servername to be GreenHornet but I changed it for the install. Also, I have the ip pointing to the server and that works fine but I wasn't sure if I did the host file correctly.



Is the host file right? Should I change the hostname file back to GreenHornet?



Any help would be greatly appreciated!


More From » 12.04

 Answers
3

I think you are mixing up things.



You are mixing domain name and aliases and fqdn.



webmail or GreenHornet are aliases (aka services inside your domain name)



alias + domain name = fqdn



the fqdn is the way to identify your service/server (if your DNS Server has the good settings)



I do not recommend using uppercase, you cannot know if it'll work correctly



To sum up you have this /etc/hosts file :



127.0.0.1       localhost
127.0.1.1 GreenHornet
xxx.xxx.xxx.85 mydomain.co GreenHornet
xxx.xxx.xxx.85 mydomain.co GreenHornet
xxx.xxx.xxx.85 webmail.mydomain.co GreenHornet

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


it means that you have 2 possible fqdn : webmail.mydomain.co and mydomain.co (if your DNS settings use a wildcard). Both answer to xxx.xxx.xxx.85 And you have one alias : GreenHornet witch answers for 127.0.1.1 and xxx.xxx.xxx.85



By what you want to accomplish you must correct this file to this form (considering all in lower case) :



127.0.0.1       localhost
127.0.1.1 greenhornet
xxx.xxx.xxx.85 mydomain.co webmail.mydomain.co greenhornet.mydomain.co

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


You have another file to see in order to change your server hostname



edit the /etc/hostname and set it up to :



greenhornet.mydomain.co


then reboot your server or execute this command to validate the hostname change :



service hostname start


Restart your apache and it'll be ok then. If not reboot your server.



You talk about a certificate. You must know that you must at least respect the cn that you have set into the certificate for this one to be valid.



You may also need to reconfigure your zimbra for taking in consideration the new hostname.



Best regards.


[#29383] Wednesday, February 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
giccolla

Total Points: 161
Total Questions: 124
Total Answers: 117

Location: Aland Islands
Member since Wed, Nov 17, 2021
3 Years ago
;