PixelHostGuidesHow to connect a domain to your Minecraft server
MINECRAFT · DOMENNew Guide

How to connect a domain to your Minecraft server

The domain makes it easy to remember the server address. The DNS configuration depends on whether you want to direct the main domain to the IP address, use the subdomain or hide the custom port of the game.

Illustration: How to connect the domain to Minecraft server?
MINICRAFT · PRACTICAL GUIDELINE

At a glance Use the DNS record matching the address and port, then check the change propagation.

Prepare the address and port of the server

From the service panel, backup the public IPv4 or IPv6 address and the Minecraft port. Do not assume that the port is standard — check it in the settings. You make DNS changes to the domain operator or to the DNS panel.

Set A or AAA record

Record A indicates the IPv4 address and AAA — IPv6. Select host name, for example mc or play, and enter the exact address. Record does not change port; if the server uses a custom port, players may still have to provide it.

SRV for custom port

The SRV record can give the Minecraft client the host name and port, but the fields must exactly match the syntax required by the DNS provider and the game. First create an A/AAAA record for the SRV target and then check the priority, weight, port and target.

Wait and test

DNS changes do not always appear immediately on each device. Check the records in the DNS tool, then test the connection from the game client. If you have a problem compare the entry with the address and port from the panel.

KEY PRINCIPLE

Back up first. Change one thing at a time.

Back up your working files, make a change and check the logs. Changing one thing at a time makes it easier to find the cause of a problem and restore your previous settings.

Back to the knowledge base