How to correctly format SRV records?

  • Posted July 11, 2014

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.


Thank you, markcza. Your answer helped my problem resolved of adding SRV record.

Actually just got mine working. For reference to a TeamSpeak user looking to use a sub domain to connect ( the record is as follows:

Enter Name: Enter Hostname: IP or domain where TS lives Enter Priority: 1 Enter Port: Usually 9987 but will vary Enter Weight: 1

To help answer your question make sure you have the periods at the end of the Name portion.

Good luck.

Looking for guidance on this too. For the life of me I can’t get mine to work. It also isn’t showing in my DNS reports. My format is as follows:

_ts3._udp.ts IN SRV 1 1 9987

I’d say to help you out, try leaving off hostname ( because I believe that should auto add. You’ll notice mine ends in ‘ts’ which would then be automatically followed by the hostname. ie. That’s how it was in cpanel, I’m really not certain if Ubuntu and BIND will do that.

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.

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.