hosts file default option

I am readig about how to setup a zimbra server and one of the requirements is to have the hosts file as follows

127.0.0.1 localhost.localdomain localhost
192.168.1.1 mail.sienic.site mail

but opensuse default is

127.0.0.1 localhost
192.168.1.1 mail.sienic.site mail

is ok to add the localhost.localdomian part? will it break something whith the network?

thanks

I’d almost say: “try”. :D.
Serious:
This is what the /etc/hosts file says:

# IP-Address  Full-Qualified-Hostname  Short-Hostname

which would imply that

127.0.0.1 localhost.localdomain localhost

is a valid entry.
Since I don’t have the instructions + cannot see how the network is setup, not much more I can say about this, but to mention that 192.168.1.1 is an address mostly used on LAN routers.

On 2013-09-15 15:56, Easgs wrote:
>
> I am readig about how to setup a zimbra server and one of the
> requirements is to have the hosts file as follows
>
> 127.0.0.1 localhost.localdomain localhost
> 192.168.1.1 mail.sienic.site mail
>
> but opensuse default is
>
> 127.0.0.1 localhost
> 192.168.1.1 mail.sienic.site mail
>
> is ok to add the localhost.localdomian part? will it break something
> whith the network?

Do it on 127.0.0.2 - there is a setting on yast (network setup) that
creates it. I can’t remember the exact name just now.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Do it on 127.0.0.2 - there is a setting on yast (network setup) that
creates it. I can’t remember the exact name just now.

It is in yast-network settings - host/DNS - *Assign Hostname to Loopback IP *but it says to use with caution specially if this server provides other network services

I don’t know if it will works with zimbra

On 2013-09-15 17:16, Easgs wrote:
>
>> Do it on 127.0.0.2 - there is a setting on yast (network setup) that
>> creates it. I can’t remember the exact name just now.
>>
>
> It is in yast-network settings - host/DNS - -Assign Hostname to Loopback
> IP -but it says to use with caution specially if this server provides
> other network services

True. It breaks postfix, for instance. And sendmail needs it… A real
pain. Fortunately, you can not install both services.

> I don’t know if it will works with zimbra

Try :slight_smile:
There is no other way.
I don’t have a list of services that need it or break with it…


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

the other question is, in dns the mx record is mail.sienic.site with A record mail 192.168.1.11, but in the hosts file opensuse setup the real hostname of the server in the hosts file as follow:

127.0.0.1 localhost
192.168.1.11 server03.sienic.site server03

instead of

127.0.0.1 localhost
192.168.1.11 mail.sienic.site mail

in this scenario what would be the correct form of the hosts file?

On 2013-09-15 20:06, Easgs wrote:
>
> the other question is, in dns the mx record is mail.sienic.site with A
> record mail 192.168.1.11, but in the hosts file opensuse setup the real
> hostname of the server in the hosts file as follow:
>
> 127.0.0.1 localhost
> 192.168.1.11 server03.sienic.site server03
>
> instead of
>
> 127.0.0.1 localhost
> 192.168.1.11 mail.sienic.site mail
>
> in this scenario what would be the correct form of the hosts file?

Both are correct, but I understand that hosts file and dns should match;
thus the second version is the right one, IMO.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)