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:
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
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.
Note: you don't need an SRV record for port 25565
(i'm aware, just messing around)
Srv records don't interfere with forced hosts in any way, either.
OH
so you're saying it should be the former?
I see what you're asking hold up
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)
from my understanding, the minecraft client sends exactly what was typed into the ip field on the client (excluding the port?)
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
if you want, I can dm you a better ping tool, it's just private rn because it's unfinished
is it web hosted? cus i'm on like 3g rn which is unbearable
yeah, it is
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!