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
ecc0
ecc03mo ago
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
FreakyMood
FreakyMood3mo ago
So you want use your own domain to share your server which is hosted by feather client am I right?
ecc0
ecc03mo ago
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
ecc0
ecc03mo ago
No description
ecc0
ecc03mo ago
No description
ecc0
ecc03mo ago
No description
ecc0
ecc03mo ago
so logo, MOTD, connection bar won't show
FreakyMood
FreakyMood3mo ago
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.
ecc0
ecc03mo ago
same to you. in fact let me change my nickname because i forgot they dont
FreakyMood
FreakyMood3mo ago
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
ecc0
ecc03mo ago
its kinda just a set it and leave it kinda thing the address is the same for all subdomains
FreakyMood
FreakyMood3mo ago
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
ecc0
ecc03mo ago
its .feathermc.gg ok sure so try example.feathermc.gg
FreakyMood
FreakyMood3mo ago
okay
ecc0
ecc03mo ago
No description
Want results from more Discord servers?
Add your server