Re: Can two machines in the same network have the same hostname with different IPs?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]





On Tue, Aug 9, 2011 at 3:13 PM, Diego Sanchez <diegors@xxxxxxxxx> 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@xxxxxxxxx>:
> 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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



--
Thank you
Indunil Jayasooriya

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux