How to setup an SRV record on the latest Digital Ocean Interface?

Posted July 9, 2017 9.5k views

Ok so I’ve read all 10 or so topics regarding the configuration of srv records here on digital ocean but they’re all seem outdated.

I’m trying to setup an srv record for a minecraft server.

I know how to set them up since I’ve had this minecraft server for a while and and the srv record was working just fine on my previous host provider but I can’t seem to get it to work with digital ocean.

Here’s the previous working configuration I had and that it shows up on most srv configuration tutorials on google:

an A Record pointing to server’s ip (minecraft server) example:

and the SRV pointing to that same A Record as such:

Points to:
port: 10041code
Priority: 0
Weight: 5

Should be accessible through

That seems logical and it works, but not on Digital Ocean, here is what I get when I try those same settings:

apparenty for some odd reason it won’t take the already known to work
but it will take minecraft.tcp (without an specified subdomain)
as seen on the next screenshot:

Then, I thougt, maybe in this new Digital Ocean Interface I don’t need to specify the subdomain directly into the hostname and all I have to do is point it to the A record, so I tried:

Digital Ocean seems to take that configuration but it just won’t work.

The is reachable since it does exists as an A record but the srv configuration just won’t kick in.

I’ve tried every single possible combination to no avail.

Anyone knows how to get an srv record working on the most recent Digital Ocean’s interface?

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.

Submit an Answer
4 answers

Just learned that if you put a “.” period after the domain name it will not append the domain name. Thanks DO!!!


The first configuration is correct. Unfortunately it looks like the validation rules for the hostname part of an SRV record need to be updated. I’m letting the right team know about this so we can get it sorted out, but meanwhile you can add the record using the API.

The easiest way to do it would be to use the doctl CLI client. See this tutorial for instructions on how to install it and authenticate. Once you’ve authenticated, run the following command:

doctl compute domain records create --record-type SRV --record-data "mc" --record-name "" --record-port 10041 --record-priority 1 --record-weight 5

Let me know if that works!

by Marko Mudrinić
DigitalOcean's web based control panel provides a convenient, point-and-click interface for managing Droplets. There are many times, however, when a command-line tool may be a preferable alternative. doctl, the official DigitalOcean command-line client, leverages the DigitalOcean API to provide access to most account and Droplet features.

I have the same problem.

Since I couldn’t wait until this problem got resolved I had to leave Digital Ocean and ended up finding a better deal but for everyone else having the same issue, simply handle your dns through your domain provider or cloudflare, srv records work great on both, cloudflare, not so good for enjin though.