DocsConnect a custom domain to your Minecraft Server
Ask on Discord
Melon
Docs Writer
Published July 25, 2026
UPDATED 7 DAYS AGO

Connect a custom domain to your Minecraft Server

Players can join with a name like play.example.com instead of an IP and port. You can use your own domain, or a free CraftLands subdomain.

QUICK ANSWER

Buy a domain/connect a domain to Cloudflare.

Go to DNS Records. Create an A Record and if your server port is not 25565, create a SRV Record as well.

Domain Wildcard. The Asterisk
When defining the subdomain for the record, you can use * (the asterisk) to let the DNS Record reference any and all subdomains under your main domain. E.g. play.craftlands.host, bald.craftlands.host and everything else. This does not mean you should use it as it can complicate your setup when scaling (an example would be javing a website, a forum, a store on the same domain)

Option 1: Use Your Own Domain

Create an A Record

On your DNS provider's page, add an A record, for either the root domain or a subdomain.

Root domain (example.com):

  • Type: A
  • Name: @
  • IPv4 address: your server IP (for example 203.0.113.45)
  • TTL: Auto

Subdomain (play.example.com):

  • Type: A
  • Name: your prefix (for example play)
  • IPv4 address: your server IP
  • TTL: Auto

Click Add Record when you are done.

Create an SRV Record

If your server does not run on the default port 25565, or you do not have a dedicated IP, also add an SRV record so players do not need to type the port:

  • Service: _minecraft
  • Protocol: _tcp
  • Name: your prefix, or @
  • Priority: 5
  • Weight: 0
  • Port: your server port (for example 25565)
  • Target: the full host (for example play.example.com)

Click Add Record.

Option 2: Use a CraftLands Subdomain

  1. 1In your server panel, go to Network → Subdomains.
  2. 2Click Create Subdomain.
  3. 3Under Domain, pick a main domain (for example fastserver.host).
  4. 4In the SubDomain field, type the name you want (for example smp for smp.fastserver.host).
  5. 5Click Create Subdomain.

That is it: the domain now points at your CraftLands server. DNS changes can take a few minutes to spread.

Rent a Minecraft Server Today

Pick a plan and your Minecraft server is online in about 30 seconds, with Paper plugins and Forge modpacks one click away in the panel. Full file access and SFTP are there when you go deeper, and free automatic backups every six hours mean a restore, not a rebuild.
VIEW MINECRAFT PLANS