How to correctly format SRV records?

I have looked in various places on this community but was unable to find an entry on how to correctly enter an SRV record on DigitalOcean’s DNS panel. As far as I know, they are correctly formatted like this example: 36000 IN SRV 0 5 25565

However, when entering the first section (before the TTL) in the Name field on the DNS panel, I am always issued a 404 error when trying to connect to the service.

SRV records are not explained very well on DigitalOcean and it would be nice to get a tutorial on setting one up for a secondary webserver or gameserver, etc.

Show comments

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.

Like markcza said, the key is that you need to make sure the name ends with a period. The same thing is true for the hostname field if you are not using the IP address.