LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-26-2007, 04:13 PM   #1
mgichoga
Member
 
Registered: Sep 2004
Distribution: Ubuntu
Posts: 42

Rep: Reputation: 16
Bind question (Changing ISP's)


I'll be faced with the tedious task of changing my ISP shortly. Part of my scare is that we might lose e-mail during this transition. Is there a way in bind to specify the same mx recored with two different IP's? This is to say that it will resolve to the old IP(say 10.x.x.x) and when we switch over it starts resolving to the new ip(say 64.x.x.x)?

is this a valid config?

@ IN MX 10 mydomain.com.
mydomain.com. IN A 10.x.x.x
mydomain.com. IN A 64.x.x.x


If anyone out there has done this kind of migration without losing e-mails please let me know.


thanks?
 
Old 06-26-2007, 05:46 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
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
 
Old 06-26-2007, 06:49 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
How about changing the TTL to a low number so that stale information won't be retained very long after the change.
 
Old 06-27-2007, 09:20 AM   #4
mgichoga
Member
 
Registered: Sep 2004
Distribution: Ubuntu
Posts: 42

Original Poster
Rep: Reputation: 16
thanks, you guys are awesome
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind Question signature16 Linux - Networking 1 04-16-2006 02:40 AM
Bind Question kemplej Linux - Software 1 03-29-2006 01:47 PM
bind question gubak Linux - Networking 2 07-27-2004 05:50 AM
Bind question DaHammer Linux - Networking 1 10-16-2003 12:12 AM
To 'Bind' or not to 'Bind' that is the question jsurgeson Linux - Newbie 2 03-24-2002 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration