Domain redirect to Backup server if main server is down?
Moderator: General Moderators
- 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?
What port do I need to open on my firewall for my nameserver?
Re: Domain redirect to Backup server if main server is down?
If you are using BIND, I think it's port 53. You should check the configuration file though
- 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?
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?
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?
Re: Domain redirect to Backup server if main server is down?
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)
- 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?
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?
That solves the website issue, but what about email? can I do the same?
Re: Domain redirect to Backup server if main server is down?
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)
- 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?
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?
Re: Domain redirect to Backup server if main server is down?
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.
- 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?
Ah ok, might give that a miss then.pytrin wrote:Configuring a mail server properly is quite a task
Re: Domain redirect to Backup server if main server is down?
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.