Question

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, ns2.digitalocean.com). The current server hosts www.mydomain.com mydomain.com 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 “mydomain.com
  2. Second server would hold just “www.mydomain.com

I was thinking the proper way would be to change the registrar.com 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!

Subscribe
Share

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

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.

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]