route subdomain to another subdomain, with a twist
so basically, I wanted to use ZT/CF tunnels for my minecraft server, but it seems impossible to do because of how TCP sockets are handled. i do know there is a free solution for minecraft port forwarding through the launcher "feather" which gives you three free subdomains on their own site which you can enter into minecraft to join the server
every minecraft server uses port 25565 by default, and of course you can't have multiple servers on the same port, but you also don't end up having to enter a port. so the only way it could possibly be hosting different minecraft servers without having to enter a port is by doing some domain name tricks to route based on the entered subdomain rather than the actual IP address or port.
what i want to do is configure the cloudflare DNS to route a subdomain on my own website to one of feather's subdomains. i'm not sure how to do this, a CNAME record doesn't seem to work.
220 Replies
i don't know whether this would be a DNS or a Rules thing to rewrite requests not only from one subdomain of my own to a subdomain of another website, but also somehow keep the info needed so that this website knows what subdomain we're looking for as opposed to just routing to the IP of the entire feather site
So you want use your own domain to share your server which is hosted by feather client am I right?
yes
i may have figured it out
it looks like you have to do an A record to their IP and then a SRV record
but i’m not sure that actually worked so if you have an idea lmk
heres the kicker tho
my setup works but it won't query
so logo, MOTD, connection bar won't show
if they give you an A record for your minecraft server, you can use that to create a srv record on your own domain. If they give you srv adress then you can use something like "https://mcsrvstat.us/" to bind that adress and get its ip and port. Then use that ip to create A record, and if the port is not 25565 use that A record to create SRV record so the players won't need to type port after typing your domain name.
-
If they gave you srv adress then theres gonna be an A record connected to that adress so you can use that instaed of creating an A record
If you type something, and I don't see it you can ping me.
same to you. in fact let me change my nickname because i forgot
they dont
Btw you can send me your adress, no need to hide it. That way if you can not find if it's either a srv record or an A record I can help you find it
its kinda just a set it and leave it kinda thing
the address is the same for all subdomains
yes, but I need an example to see if they give A record or srv record
It can be other peoples adress too but I don't know if they have any example.feathermc.gg or not
its .feathermc.gg
ok sure
so try example.feathermc.gg
okay