Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm setting up a website for the company I work for and I've just purchased a hosting account. They already own their own domain name, but they have an external mail service they would like to keep using. Right now the nameservers for their domain are pointed at the email host, but in order for the website to work, they need to be pointed at the site host.

How do I go about switching the nameservers to point to the site while maintaining their email setup? It's obviously going to be pretty important that their email service is not affected through this process, so I don't want to mess anything up.

Thanks

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Note: If the existing email service also incorporates a web front-end, the following instructions will not be sufficient - consult the email service provider and relevant documentation.

You can simulate the change on a testing box to confirm that any changes you plan to implement will work before you make any changes to the domain's nameserver settings.

  1. On the new nameservers, duplicate the existing setup's MX records

  2. On your testing box, set hosts file entries for the nameservers to point to the IP addresses of the new nameservers you've set up

  3. On your testing box, flush the DNS cache and verify that the new nameserver records are being used (you can ping the domain name assigned to each nameserver - if the IP reported is the IP of your new nameserver as specified in the hosts file, you're set)

  4. On your testing box, send a test email using SMTP (or telnet) - use a valid return address in case a bounce message is sent by the email service provider.

  5. Confirm that the intended recipient has received the message

If you encounter errors while sending, research any error codes provided to determine the cause of the issue.

If the email is received, everything should be in working order to update the domain's nameservers without affecting clients with cached records or otherwise impacting email service.

If the email is not received and you did not receive an error while attempting to send or a bounce message at the return address you specified when you created the message, consult the email service provider to determine why the email was rejected (they should have a log of the attempt).

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.