That is not something BIND can really help you with. All BIND does is translate names into IP addresses. You can weight mail server preferences, and it will always pick the server with the lowest preference, then if that fails, it will go to the next one on the preference scale.
You cannot assign 2 different IPs to the same domain name. if you do, they will round robin, which is not what you want.
The best BIND can do to help you is setup 2 different names for the mail server, even if there is only one of them. Say mail.domain.com, and mail2.domain.com. Set mail.domain.com with a MX preference of 10, and mail2.domain.com with a preference of 20. It will try mail, and if it fails, it will try mail2.
The "right" way to do this is to have a connection that can handle multiple feeds in, that way the server could exist at both the 10.x.x.x and 64.y.y.y addresses. Make the change as quick as possible. An even better way to go is to have another server that can simply cache the mail for you until your main box gets back online. There is no way to do this with 1 server, you'd need 2. On the plus side, most MTAs will simply hold the mail that can't be delivered, and try again at a later time, in which case your server should be up at the new address.
Peace,
JimBass
|