Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-15-2007, 04:15 AM
Senior Member
 
Posts: 59
Question HowTo simulate DNS settings

I want to setup a spare server for disaster-recovery. (Zimbra OS Version on Debian)

So it should have the same hostname and MX record as the production server.

How can I fake the DNS settings like A record and MX record for the Zimbra binary installation at the moment of initial installation? (and for postifx after the installation procedure, if i let it run to test the spare server. therefore I would set the IP on my workstation through hosts file to point to the new server)

how to do this on a local LAN without internet-access?
and how on an internet-connected spare-server that has a different ip?

If I can do this, it is possible to easily switch the DNs settings in case of desaster from the production machine to the spare-server.

thanks in advance, robert

Last edited by easytouch; 02-15-2007 at 04:18 AM..
Reply With Quote
  #2 (permalink)  
Old 02-15-2007, 04:17 AM
Moderator
 
Posts: 2,207
Default

Quote:
Originally Posted by easytouch View Post
How can I fake the DNS settings like A record and MX record for the Zimbra binary at the moment of initial installation?
These settings are guessed by the installation script (DNS queries) but are overidable.

Why not just overide them once in the script instead of trying to fool the script by fake DNS (and taking risks with that) ?
Reply With Quote
  #3 (permalink)  
Old 02-15-2007, 04:25 AM
Senior Member
 
Posts: 59
Question which parts of install script to change?

thx for the quick suggestion.

If I set (on the spare server) in /etc/hosts/ the IP address of the production server, the unmodified installation looks at the MX Record and down to the 'real' IP from the external DNS servers. Aftwerwards zmapachectl is not ale to run.

Which parts of the install script would I have to change? Could someone giveme a pointer?

What If I had wrong settings in etc/hosts, or something related to IP's and DNS settings hase changed - where are the points to change the actual configuration by hand for a already installed system?

thank you
Reply With Quote
  #4 (permalink)  
Old 02-15-2007, 04:50 AM
Senior Member
 
Posts: 59
Default Split-DNS

I will try the way with Split-DNS

http://wiki.zimbra.com/index.php?title=Split_dns
Reply With Quote
  #5 (permalink)  
Old 02-15-2007, 05:30 AM
Moderator
 
Posts: 2,207
Default

Quote:
Originally Posted by easytouch View Post
Which parts of the install script would I have to change? Could someone giveme a pointer?
You don't have to change anything IN the script.
Just changes the parameters (answers to the script's questions).
Reply With Quote
  #6 (permalink)  
Old 04-30-2007, 12:39 PM
Junior Member
 
Posts: 8
Default Hello

KLUG,
I was searching through the forums, and found this thread. It seems close to the question I asked somewhere else unsuccesfully in another thread. But please let me ask it here again as I think you know the answer to my question.

I would like to preload zimbra on a new server so that I can switch the servers friday nite. During the install the domain and mx records will not be valid, but will be when I switch the servers. Can I safely ignore the message that there does not seem to be a mx record for this domain. and go on with the installation? Will the zimbra install script "take my word" for the dns config and finish installing?

What I am hoping I can do is.

1)preload zimbra on new machine (not attached to network to not interrupt email now).
2)Friday unplug existing non-zimbra email server.
3)Turn on new pre loaded zimbra server.
Reply With Quote
  #7 (permalink)  
Old 04-30-2007, 03:57 PM
Senior Member
 
Posts: 60
Default

Quote:
Originally Posted by easytouch View Post
I want to setup a spare server for disaster-recovery. (Zimbra OS Version on Debian)

So it should have the same hostname and MX record as the production server.

How can I fake the DNS settings like A record and MX record for the Zimbra binary installation at the moment of initial installation? (and for postifx after the installation procedure, if i let it run to test the spare server. therefore I would set the IP on my workstation through hosts file to point to the new server)

how to do this on a local LAN without internet-access?
and how on an internet-connected spare-server that has a different ip?

If I can do this, it is possible to easily switch the DNs settings in case of desaster from the production machine to the spare-server.

thanks in advance, robert

The best way is to setup a DNS server on the spare computer and have the spare computer using its own DNS server rather than the external one (on linux this can be done by changing the DNS settings in resolv.conf).

That way the spare computer no longer needs the outside world and therefore you can disconnect it from the outside networks for better security.

Then to "activate" the spare just shutdown its internal DNS server, and change the resolv.conf to point to the "real" DNS server.
Reply With Quote
  #8 (permalink)  
Old 05-07-2007, 10:51 AM
Junior Member
 
Posts: 8
Default Another way

Although I am sure setting up an internal dns server would have solved this also, I choose another route that in my case was more straight forward, and I wanted to share this.
Anyway I added a second mx record for the domain with lower priority (higher number), this satisfied the installers need to check the mx, and allowed the current email to work until I was ready to make the change. Then all it took was changing the mx records and presto.. the new server was in place.
I'm sure setting up an internal dns server has it's place, but why run an authoritative dns server unless you have too, most people register the domain name with a service, and everyone I have used dydns, godaddy, network solutions all give you a nice interface to maintain the dns records. The only possible reason might be a nated interface on a dynamic ip, but ddclient and port forwarding solved that for me on dyndns.
Well I hope this makes someone else's transition as smooth as mine went.
To the Zimbra Team: Thanks for such a great product.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.