SRV records and forced hosts

Hello! I'm attempting to use SRV records and Velocity's forced-hosts to send users to different servers based on the domain they connect to. If I have an SRV record such as below:
_minecraft._tcp.server.example.com. 300 IN SRV 0 0 25565 some.internal.domain
_minecraft._tcp.server.example.com. 300 IN SRV 0 0 25565 some.internal.domain
Does the Notchian client send server.example.com as the sever address field (see https://wiki.vg/Protocol#Serverbound, it's how Velocity/Bungee etc. does forced hosts), or the translated some.internal.domain?
13 Replies
kaylen ✨🍓
kaylen ✨🍓OP2y ago
From my experimenting it seems to be the latter which is somewhat annoying, but I want to dc I'm not being stupid and doing this wrong.
Discount Milk
Discount Milk2y ago
Note: you don't need an SRV record for port 25565
kaylen ✨🍓
kaylen ✨🍓OP2y ago
(i'm aware, just messing around)
Discount Milk
Discount Milk2y ago
Srv records don't interfere with forced hosts in any way, either. OH
kaylen ✨🍓
kaylen ✨🍓OP2y ago
so you're saying it should be the former?
Discount Milk
Discount Milk2y ago
I see what you're asking hold up
kaylen ✨🍓
kaylen ✨🍓OP2y ago
ye like ideally i have one domain that's hard to guess then all the domains my servers use SRV to that to make it a little harder to find it's very much overkill, but i'm just interested to see if it's possible (i.e. 10 SRV records and 1 A record instead of 10 A records)
Snow Kit
Snow Kit2y ago
from my understanding, the minecraft client sends exactly what was typed into the ip field on the client (excluding the port?)
kaylen ✨🍓
kaylen ✨🍓OP2y ago
yeh that's what i thought it did, i've only tested it with an online query thing rather than the actual client cus i'm on the train i'm hoping that's how it behaves cus that would allouw this to work so perhaps it's a failing of the online tester
Snow Kit
Snow Kit2y ago
if you want, I can dm you a better ping tool, it's just private rn because it's unfinished
kaylen ✨🍓
kaylen ✨🍓OP2y ago
is it web hosted? cus i'm on like 3g rn which is unbearable
Snow Kit
Snow Kit2y ago
yeah, it is
kaylen ✨🍓
kaylen ✨🍓OP2y ago
if you wouldn't mind :) awesome ye that looks like it's working as intended tysm @Snow Kit ❤️ for those reading this if they ever need, it is the former - the notchian client sends whatever's in the address box, which will let you do this SRV shenanigans!

Did you find this page helpful?