Question

setup PTR for multiple hostname

Dear Support

i have two dns hostname on 1 vm droplet, the primary one have setting PRT base on hostname droplet and second one is not setup yet, do i setting PTR for secondary hostname ?

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.

Hello,

There should be no need to have 2 PTR records. Recently I had a discussion about the same thing here.

Basically, as per this comment here, you can set the Droplet’s hostname (which would update the PTR record along with it) to e.g. mail.yourdomain.com where yourdomain.com is one of the domains on that droplet, and then add an A record for mail.yourdomain.com that points to your droplet.

This way it will be a valid PTR <=> FQDN setup and it will work fine for all of the domains on that Droplet.

As a side note, I could also suggest checking this discussion here on why adding multiple PTR records is not recommended:

https://serverfault.com/questions/618700/why-multiple-ptr-records-in-dns-is-not-recommended

Best,

Bobby

Hello there,

There is no particular need to do that. Are you looking into sending emails using both domain names from your droplet?

Hope that this helps!