Proper A record set up for two separate servers

March 17, 2016 603 views
DigitalOcean Deployment DNS LEMP Ubuntu

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!

1 Answer

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]

  • Thanks for the response ryanpq

    Follow up question, is there in impact via SEO that is better using the method you suggest versus doing the dns stuff at the registrar level?

    • At this level there should be no difference to SEO that I am aware of.

  • Follow up: seeing this note on digital ocean control panel:
    "Our networking team is still investigating issues with Google DNS in our AMS regions. During this time we recommend changing your droplet to another DNS provider, such as OpenDNS. If you need assistance with this, feel free to open a support ticket. We will provide an update as soon as one is available."

    Is doing the dns through digital ocean a good choice right now? Or is this message not relevant?

    • It wouldn't be relevant. This issue was affecting some droplets in our Amsterdam region being unable to reach the google public DNS servers. It does not relate to our DNS servers or services.

Have another answer? Share your knowledge.