Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 have a domain, on which an e-mail box is hanging now (

I want to configure it so that

a) when the user enters in the browser, the user is directed to a home page, which is located in on a web hosting with IP addresses A and B and b) the e-mail address is still working.

Question: What DNS records should I add to implement this?

Thanks in advance


share|improve this question

migrated from May 16 '11 at 9:30

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

up vote 2 down vote accepted

Email is delivered using the MX record (or records) for the domain. You need to make sure that the MX record will still resolve to the current host. Check the current MX records do not reference directly. If they do, create a new A record (e.g. and set the MX record to the new A record.

Now change your existing domain to the new IP address of the web site. I'd suggest adding a CNAME record to

So you should end up with:       MX  0  A     <mail server IP address>       A     <hosting IP address>   CNAME
share|improve this answer

Your Answer


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.