Can we load balance trafgic for CNAME records?

Feng He fenghe at nsbeta.info
Fri Dec 14 08:19:01 UTC 2012


于 2012-12-14 13:27, Manish Rane 写道:
> Like say i need to play with mail services and I have 2 ISPs.say ISP A
> and ISP B.
>
> MX 10 mail.example.com <http://mail.example.com>  20.20.20.20 (from isp A)
>
> Mx 20 mail01.example.com <http://mail01.example.com> 30.30.30.30 (from
> isp B)
>
> CNAME cas.example.com <http://cas.example.com>
> mail.example.com <http://mail.example.com> 20.20.20.20
> mail01.example.com <http://mail01.example.com> 30.30.30.30

A cname host can't be pointed to two hostnames.

>
> Now when users wil confugure their mail boxes they will use
> cas.example.com <http://cas.example.com>.
>
> Can I load balance the traffic for cas.example.com <http://cas.example.com>?
>

If you want the traffic balance, I think the two MXes should take the 
same priority. i.e,

xxx.com.             900     IN      MX      5 mx1.xxx.com.
xxx.com.             900     IN      MX      5 mx2.xxx.com.



More information about the bind-users mailing list