Minecraft server with custom domain
I have a domain running through cloudflare and want to connect it with my minecraft server. That would be pretty easy if i was running the server locally, but I don't want any open ports on my network, thats the reason I'm using feather. Feather is a server provider where I can host my server for free on my pc, using my RAM but you can only connect through the public IP of feather assigned to you "example.feathermc.gg". Now the problem is that for (what I am trying to accomplish) redirecting my domain to the feather server domain, I need a ipv4 or ipv6 ip. Now my question, where can I find the public IP of my running server or could I setup a redirect directly to "example.feathermc.gg"?
20 Replies
Have you tried setting a CNAME record pointing to
example.feathermc.gg
? Make sure to disable Cloudflare proxyingThis is actually kind of simple, create an SRV record and name it whatever you want (this will be the subdomain), set the service _minecraft (optional), make sure that the protocol is TCP and the time to live is set to auto, set the priority and weight to 0, the port to 25565 and target it at your feathermc.gg subdomain.
(This does actually work, I have verified it)
Did a
CNAME
record not work?I haven't tried it unfortunately.
Using SRV does have the disadvantage that it wouldn't work if the feathermc.gg subdomain was using a CNAME record or an SRV record
Only works if it has a A/AAAA record
I do believe a CNAME record is a more versatile solution, although if feathermc.org subdomains have A/AAAA records set up then both solutions should work
It did work when I was testing it, I don't see how it wouldn't work on their machine.
Possibly, I'll check if this works tomorrow.
That means they're using A/AAAA records
Also what dig is saying for a random subdomain under feathermc.gg I've found
Nope, cname doesn't work
thx very much i will try that
You disabled proxying, right?
yep
tried it with both tho
Proxying enabled definitely won't work
It's weird that proxying disabled isn't working though
Yea thats what I thought too
idk minecraft is weird
Since I had a similar setup - CNAME record pointing to a subdomain with an A record
For a Minecraft server
And it worked just fine
yea i just had a cname not an a record
can you give me an example of what u did?
This would work I think, but i couldnt do like "play.mydomain.com" instead i have to do "_minecraft._tcp.play.mydomain.com"
pretty long
No that's just how the expression shows up as. Your friends will connect through play.mydomain.com
oh okay
wait lemme try
Damn it works
tysm @David
You're welcome!
I had a subdomain
xyz
with an A
record pointing to the MC server and a CNAME
record for subdomain abc
pointing to the xyz
subdomainThere are also public servers with such a setup