If you're using our web hosting, which runs on the SPanel control panel, you can create an SRV record to use with a Minecraft server hosted with us or elsewhere to let players connect to your server. This is useful because an SRV record will let you hide the port if your Minecraft server is using a port that's not the default Minecraft port of 25565.

In this example we will act like you have a Minecraft server running on 192.168.10.20:25670. We will make an SRV record on your theoretical domain play.exampleserver.com so players can connect using that subdomain instead.

Log into SPanel and scroll down to the Domains section, then click "DNS Editor" to open the DNS zone editor page.

We need to create two DNS entries. One "A" DNS entry and one "SRV" DNS entry. The first A DNS entry must be a different subdomain than the one you want to connect with, it will be used to resolve to the raw Minecraft IP address, in this example we will use "mcip.exampleserver.com". The SRV record will be used for the actual subdomain you want players to connect with, and the SRV record will point to that first A record.

Click the green Add Record button then create two records with the following content, replacing the example IP and domain mentioned above with your own.

Per the screenshots above, the DNS records should have these values:

A Record

Type: A
Name: mcip.exampleserver.com
Value: 192.168.10.20
TTL: 14400 (you can put any number, 14400 means 4 hours "time to live")

SRV Record

Type: SRV
Name: _minecraft._tcp.play.exampleserver.com
Priority: 1
Weight: 1
Value: mcip.exampleserver.com. (make sure you put a period . at the end or it won't work)
Port: 25670
TTL: 300 (300 would be a 5 minute time to live)

Add both records and you're good to go. DNS changes can take a while to take affect, depending on your computer or routers DNS resolvers. If you're using a public DNS resolver service like Google DNS or CloudFlare DNS, then changes are usually instant. But some internet provider DNS resolvers may not show changes for a few hours in some cases.

¿Fue útil la respuesta? 0 Los Usuarios han Encontrado Esto Útil (0 Votos)