#how do i change the domain of my preinstall pterodactyl dedi?
17 messages · Page 1 of 1 (latest)
I happen to host a minecraft server using Pterodactyl panel on a VPS here. If you mean how do you add a domain like example com as a domain for your server or even a fancy subdomain like mc example com, it's not that hard. You can make a domain point to your server by simply modifying the DNS records and adding an A record pointing to the IP of your VPS. (for some reason I cant put the dots in the domains because there is some spam filter)
This is what my records look like (note that my real IP and domain are not shown here):
inhoud 
If your server runs on the default port of 25565, people can just use basically any A record pointing to that IP
mijndomein moment 
Why not use cloudflare?
Too lazy to set it up at the moment. And for simplicity sake it's probably good enough
Cloudflare speeds up your DNS a lot
http://images.bas-tech.support/9bRm.png and they proxy stuff :D
Yeah I should probably set it up lmao, already have multiple sites running it, just wanted to get the server up and running. @golden kraken If you want to use cloudflare you should first configure the nameservers to the ones cloudflare provides, and then set up the records accordingly on cloudflare itself. If you need help with it just ping me.
If your server runs on a different port than 25565 (or the equivalent default port of another gameserver) and don't want people to manually enter the port of your server, or for example the bluemap I have configured on my server. You need to SSH into the VPS and configure a reverse proxy in the NGINX folder so that people can use a subdomain for example to connect to said server. You could even have multiple subdomains for multiple servers running on it.
NGINX for minecraft dont work
You need to use a SRV record for that
Ah, I'm not too familiar with it, but I just assumed it would because it works with my bluemap, but that makes sense.
Yea but NGINX is used for web traffic and minecraft traffic doesnt go over port 80 so it dont detect the traffic
and is unable to redirect it
Ah yes, you're right. Forgot about that detail.