Domain redirect to Backup server if main server is down?

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Domain redirect to Backup server if main server is down?

Post by jaoudestudios »

What port do I need to open on my firewall for my nameserver?
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Domain redirect to Backup server if main server is down?

Post by Eran »

If you are using BIND, I think it's port 53. You should check the configuration file though
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Domain redirect to Backup server if main server is down?

Post by jaoudestudios »

Thanks, yep, I confirm it is port 53.

I am having some issues with this nameserver & zone files etc, so my original plan is falling apart and I am running out of time. Is there an easier way to do a catch all, so if any of the domains are unreachable they all point to the same webpage, i.e. a maintenace page?
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Domain redirect to Backup server if main server is down?

Post by Eran »

I had thought about it again, and since you say your nameserver is not the server you are taking down the answer is simply changing the ip of the domain on the nameserver when you need to take it down. I'm not aware of a way to do this automatically without some middleware (clustering software for example)
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Domain redirect to Backup server if main server is down?

Post by jaoudestudios »

That does sound like the best way. I have modified my configurations and setup a few test subdomains and it all seems to work perfectly. More manual, but a GREAT idea, thanks :)

That solves the website issue, but what about email? can I do the same?
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Domain redirect to Backup server if main server is down?

Post by Eran »

I should think Email domains are resolved the same and thus should reach your backup server (provided you configured your mail server on it properly)
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Domain redirect to Backup server if main server is down?

Post by jaoudestudios »

Sorry, that is what I meant, how do I configure the email accounts on the server? I have googled around, but none the wiser. Any good tutorials you're aware of?
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Domain redirect to Backup server if main server is down?

Post by Eran »

There are literally dozens of different mail-servers (most common being Exim and postfix), so that's really hard to say. Probably best to use what comes packaged with your distribution. Configuring a mail server properly is quite a task, so if you have a working configuration you might consider duplicating it.
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Domain redirect to Backup server if main server is down?

Post by jaoudestudios »

pytrin wrote:Configuring a mail server properly is quite a task
Ah ok, might give that a miss then.
User avatar
a94060
Forum Regular
Posts: 543
Joined: Fri Feb 10, 2006 4:53 pm

Re: Domain redirect to Backup server if main server is down?

Post by a94060 »

do you have a domain name? If you do,im sure that they would offer a panel for control allowing you to modify name servers. As for needed to have your own on top of that,im not entirely sure that you have to have one.
Post Reply