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 want to have my new site located at GitHub Pages, but unfortunately I've been using an email account with the domain I want to point to GitHub.

So, I have this paid hosting where I'm receiving my emails, my domain name registered at GoDaddy, and I want to keep it that way. I just need to have the Website content located at GitHub.

How would I change the DNS Records so this setup works? That is, and all its subdomains pointing at GitHub, but I would still be able to receive my emails, because they are located at my paid hosting.


PS: According to GitHub Pages article, I need to change the A record to the IP they give me, but I don't know how to do the email setup.

share|improve this question
up vote 6 down vote accepted

You need to set the A record of your domain to GitHub-IP and the MX Record to your e-mail Provider.

Example: IN A in MX 10 <name of your e-mail providers server>

This should be all to do.

share|improve this answer
Hey there! You see, I did something similar, but GoDaddy also declares a Points to field for the MX record. Every other example I've seen online only uses the host field. Anyways, I declared a "mail" A Record with the e-mail server's IP, and the MX Record as follows: Priority=0, Host=mail, Points I tried sending myself an e-mail today, but it did not arrive. I didn't even get an error message or anything. In your example, and according to these fields GoDaddy gives me to fill, where would I put the e-mail server's IP address? In Points to? Any leads? Thanks! – Andrés Jun 12 '11 at 19:48
Ahhhhhhhhhh! Miserable GoDaddy and their confusing naming. It happens that you need to set up the Host as @, and Points to as I even just received the test e-mail I sent yesterday. Thank you very much! – Andrés Jun 12 '11 at 20:05
Oh, and remember I set an A Record for mail. – Andrés Jun 12 '11 at 20:06
GitHub now recommends using IP address in your A record. – Kevin May 10 '12 at 5:46

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.