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 *
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"
2011/8/9, Indunil Jayasooriya indunil75@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
On Tue, Aug 9, 2011 at 3:13 PM, Diego Sanchez diegors@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@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@centos.org http://lists.centos.org/mailman/listinfo/centos
On Tue, Aug 9, 2011 at 12:03 PM, Indunil Jayasooriya indunil75@gmail.com wrote:
On Tue, Aug 9, 2011 at 3:13 PM, Diego Sanchez diegors@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?
Diego actually already answered you.
And yes it can be done. And, yes, it's generally used for round robin DNS, whether you actually want to use round robin DNS or not.
P.S. Please don't top-post.
From: Indunil Jayasooriya indunil75@gmail.com
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..
On the server itself, as long as it is only in /etc/hosts, I think you can (be sure to have hosts: files dns in nsswitch.conf). So you mean to manualy modify your DNS to switch from 192.168.0.1 to 192.168.0.2 if 192.168.0.1 is down? Maybe have a look at the Zimbra multi server install documentation.
JD