SRV records on Minecraft servers

Hello, I have 2 minecraft servers on 1 dedicated server, 1 of them is hosted on port 25565 respectively without additional SRV record in cloudflare, but the 2nd server is already hosted on port 25566 and for it I made SRV record which looks like this
Type
SRV

Name (required)
_minecraft._tcp.mc
Priority (required)
0
Weight (required)
5
TTL
Auto
Port (required)
25566
Target (required)
mc.example.com
Type
SRV

Name (required)
_minecraft._tcp.mc
Priority (required)
0
Weight (required)
5
TTL
Auto
Port (required)
25566
Target (required)
mc.example.com
The problem is that sometimes when I go to mc.example.com I am not redirected to this server I need but to the main server, which is hosted on 25565 port, it is very rare cases but I write about it several players once a day exactly.
3 Replies
DarkDeviL
DarkDeviL9mo ago
As I see it, you're attempting to use mc.example.com to connect with, on both servers at the same time, and where both of the servers run on the exact same IP address? If that is correctly understood, I would start by changing it so you are using a different, and unique name for each server, e.g. mc-1.example.com and mc-2.example.com.
I_ectb_Grut
I_ectb_GrutOP9mo ago
No, you don't understand, I have 1 dedicated server running 2 minecraft servers. The domain of the 1st server is: mc.example.com, I don't make SRV record for it because the port on which this server is running is 25565 therefore only A record is enough. Server domain 2 is: mc.test.com, it is already running on port 25566 for example so I do the SRV record above for it, but sometimes when people try to go to mc.test.com they get to the server mc.example.com, and I don't understand what this is related to.
DarkDeviL
DarkDeviL9mo ago
It's on the exact same IP address, right?
I don't make SRV record for it because the port on which this server is running is 25565 therefore only A record is enough.
Although that is actually true when you run on the default port, have you actually tried with two different SRV records, one for each? In the past at least, I've heard about multiple Minecraft versions, where some versions would support SRV records, and other's wouldn't, - however, I have no information about how deep or far that reaches. If you're dealing with an older client that doesn't support SRV, that could eventually be the problem. I could be tempted to try something like: For example.com: _minecraft._tcp.mc SRV 0 5 25565 minecraft-ip.example.com minecraft-ip A 192.0.2.123 For example.net: _minecraft._tcp.mc SRV 0 5 25566 minecraft-ip.example.net minecraft-ip A 192.0.2.123 Alternatively, if you want both mc.example.com and example.com to work, then something like: For example.com: _minecraft._tcp SRV 0 5 25565 minecraft-ip.example.com _minecraft._tcp.mc SRV 0 5 25565 minecraft-ip.example.com minecraft-ip A 192.0.2.123 For example.net: _minecraft._tcp SRV 0 5 25566 minecraft-ip.example.net _minecraft._tcp.mc SRV 0 5 25566 minecraft-ip.example.net minecraft-ip A 192.0.2.123 So you're explictly setting it up with SRV, even if it is normally not necessary.
Want results from more Discord servers?
Add your server