Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've just built a new site on a NEW host at this domain

The current live site is at a different domain and different host

I want to redirect to (I have all the rewrite and redirect rules etc.)

My confusion is over what DNS records to change in order to redirect old to new AND keep email working with old domain. Here's the details:

1) I am creating a domain on my NEW webhost called this will be where the htaccess redirect rules are that will redirect users to

2) However, email is hosted separately and all the users will still be using

3) website is currently hosted with Rackspace, but won't be after the switch

4) email is hosted with Cobweb

5) nameservers are set to: NS.123-REG.CO.UK and NS2.123-REG.CO.UK

As I am only changing where the website of is hosted, I need to know what to change!

Here's my current DNS settings:

@ - MX - Priority 10 -
@ - MX - Priority 20 -
@ - A -
@ - TXT/SPF - v=spf1 include:spf.m
autodiscover - CNAME - autodiscover.hosteds
ftp - CNAME - old-domain.
mail - A -
www - A -

Name servers: NS.123-REG.CO.UK and NS2.123-REG.CO.UK

The IP address is with Rackspace (which has two records: @ and www). The other records I think are with Cobweb (email).

Question: If I want to point to the new host (Vidahost) BUT KEEP EMAIL WITH COBWEB, should I only change the records above?

One of the reasons this came about is because 123-reg told me to change the nameservers to the new host - when the current setup has the nameservers set as 123-reg, so I thought changing this would throw email out! Ultimately, I'm only changing the website location.

share|improve this question

migrated from Jan 20 '12 at 17:40

This question came from our site for professional and enthusiast programmers.

If you wish to change your website hosting, however leave your emails where they are currently, you will need the change the IP address which your domain names A records point to for www and @. You should leave the nameservers pointing to 123-Reg and make no changes to your MX or mail A record.

This will keep the email as it is now, and just point to your new website.

share|improve this answer
This is correct. Would just like to add one thing: Lower your TTL values before changing DNS settings. If everything goes correctly, then it will just make the transition smoother. If something goes wrong you'll be able to recover from the error quicker. – Ryan Jan 23 '12 at 21:50

If you want to keep your email on your old provider, then please just point your A record to your new hosting provider. You dont need to point your domain to your new name server.

Hope it helps

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.