About PTR & MX Records in Digital Ocean

I am going to deploy my next big project in DigitalOcean. Before going with DigitalOcean I just want to be clear on few things about PTR records.

I have read most of community answers related to PTR records. And, up to my knowledge (understanding as well), DigitalOcean configures PTR record based on **Droplets ** name.

I have this scenario for my next project:

  1. I want to host my website in DigitalOcean Droplets (let’s say its IP is with URL lets say (
  2. I want to set mail server in URL and this is not in DigitalOcean and its IP is (let’s say) in different server.

My Confusion is:

Should I name my droplets as or

And how do I configure A, MX, PTR records for perfect configuration so that there is no any issue related to spam and transaction of system generated mail (as far as I know, most of mail exchange services in these days do match dns and rdns for mail transaction (correct me if I am wrong))

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.

Hello, @eramesh11

DigitalOcean will automatically create PTR records for your Droplets based on the names you give your Droplets in your DigitalOcean control panel.

The name of your Droplet must be a valid FQDN (Fully qualified domain name), so using as the Droplet name will create a PTR record, but ubuntu-s-4vcpu-8gb-fra1-01 or my-droplet will not.

It is up to you if you will use or as your hostname. Usually a subdomain can be handy so you can go with something like and etc. Keep in mind this is totally up to you.

You can set the MX record to any subdomain of your choice like as long as this subdomain is pointed to your droplet’s IP address. You can also set the MX record to match the droplet’s hostname, this will work too.

As for improving your outgoing emails you can make sure you have a SPF (this is basically essential)record added and also you can use any website like:

In order to test test the spammyness of your emails. The result will tell you what else you can do in order to improve the score of your emails.

Hope that this helps! Regards, Alex