[CentOS] Can two machines in the same network have the same hostname with different IPs?

Indunil Jayasooriya indunil75 at gmail.com
Tue Aug 9 10:03:20 UTC 2011


On Tue, Aug 9, 2011 at 3:13 PM, Diego Sanchez <diegors at gmail.com> wrote:

> Are you trying to use Round Robin DNS?
> Yes, you can
>
> But, remember.. If you use same hostname, the client will access to
> them in "random"
>
> thanks for the quick answer. NOT to use Round robin DNS.
>


on one server, under /etc/sysconfig/network hostname field

*HOSTNAME=mail.example.com*


and /etc/sysconfig/network-scripts/ifcfg-eth0 file

*IPADDR=192.168.0.1
*


on the other server, under /etc/sysconfig/network hostname field also

* HOSTNAME=mail.example.com*


and /etc/sysconfig/network-scripts/ifcfg-eth0 file

*IPADDR=192.168.0.2*


is it possible? is it recommend?


my task is to have 2 zimbra servers with mail.example.com with 2 ips

192.168.0.1 is the primary, I want to *rsync* /opt of this server to the
other server 192.168.0.2.


then, primary fails, I have a backup on the other server. no data lost....


This is what I want to achieve. but, NOT for any kind of ROUND ribbon DNS
stuff..


is it possible? is it recommend?


Pls answer?













> 2011/8/9, Indunil Jayasooriya <indunil75 at gmail.com>:
> > Hi,
> >
> >
> > Can two machines in the same network have the *same hostname* with
> different
> > IPs? I have done it in test environment. I want to do it under
> production?
> >
> > is it possible ? is it recommended?
> >
> >
> > let's say .
> >
> > one Server is *mail.example.com* with ip address* 192.168.0.1*
> >
> > the other Server is also *mail.example.com* but with another ip
> > address *192.168.0.2
> > *
> >
> >
> >
> >
> >
> >
> > --
> > Thank you
> > Indunil Jayasooriya
> >
>
> --
> Enviado desde mi dispositivo móvil
>
> Diego - Yo no soy paranoico! (pero que me siguen, me siguen)
> http://about.me/diegors/bio
>
> El que usa una firma mas larga que el mail que envia, se la come
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
Thank you
Indunil Jayasooriya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20110809/614142ef/attachment.html>


More information about the CentOS mailing list