Can you leave MX records intact for a domain while redirecting website traffic to another server?

I am currently in the process of switching from a Wordpress site to a Hugo static site, and given my use-case I am thinking it may be easier for now to run my website off of Github pages rather than convert my droplet.

That said, I don’t want to delete my droplet, I will continue using it. I also do not want to touch the mail DNS if possible, as it is set up to forward to Google mail servers where I use gmail’s custom domain email service.

Is it possible to point my website domain at Github pages, while leaving the MX records intact? Essentially I am looking for the path of least resistance here as I do not want to screw up my email service while fiddling with DNS.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hey friend!

Great question. You can absolutely move your website DNS around without touching the MX records. Just edit the “@” (also shown as just “domain.tld”) and “www” records as needed, and leave the MX records in place.