Proper A record set up for two separate servers

I currently have one server with my registrar pointing the domain name via digitalocean name servers (ns1.digitalocean, The current server hosts and my mail server

I want to convert my current set up into two different servers:

  1. Current server would still be the mail server and hold “
  2. Second server would hold just “

I was thinking the proper way would be to change the to no longer point to digital ocean dns and instead point the dns servers to my registrar and then do something with the A-records…this is where I get confused.

Can somebody please make some suggestions on how to set up the a-records for the two different servers on the registrar?

I’ve seen a few kinda answers but not really anything concrete.

Thank you!

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.

There is no need to repoint your DNS. You can set this up via the Networking->DNS section of the control panel. Your mail server records will remain unchanged and you’ll want the following two A records for your web content.

www A [ip address of second server] @ A [ip address of first server]