How to correctly format SRV records?

July 11, 2014 6.5k views

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.

  • 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.

  • 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.

1 Answer

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.

  • Also would like to add something I wasn't able to verify until today. I was required to add an A record pointing to the sub domain before TeamSpeak would connect.

    A record:

Have another answer? Share your knowledge.