What you need to do

To use your own domain name instead of an IP address for your Minecraft server, you change the DNS records at your domain registrar to point to your server's IP address. This involves adding an A record (for the main domain) or SRV record (for a custom port), then waiting for those changes to spread across the internet — usually between a few minutes and 48 hours.

The exact steps depend on whether your server runs on the default Minecraft port (25565) or a custom port, and which registrar you use. Most registrars have similar interfaces, but the button names and menu locations vary.

Key Takeaways

  • You need your server's IP address and the port number it runs on before you start making DNS changes.
  • An A record works for servers on port 25565; an SRV record is required if your server uses any other port.
  • DNS changes can take up to 48 hours to work everywhere, though most players see them within minutes.
  • You must own or have admin access to the domain name's registrar account to make these changes yourself.

Finding your server's IP address and port

Before you touch your DNS settings, you need two pieces of information: your server's public IP address and the port it listens on. If you rent server space from a hosting company like Nitrado, Aternos, or Shockbyte, they display both in your control panel — usually on a page labeled "Server Details" or "Connection Info".

If you run the server from your own computer, your public IP is not the address shown in your router settings. Find it by visiting a site like whatismyipaddress.com or ipchicken.com from the computer running the server. The port defaults to 25565 unless you changed it in your server.properties file.

Write down both the IP address and port number exactly as they appear. A single wrong digit breaks the connection.

Adding an A record for port 25565

If your server runs on the default port 25565, you only need to add an A record. Log into your domain registrar's website — common ones include GoDaddy, Namecheap, Google Domains, and Cloudflare — and find the DNS or DNS Management section.

Look for a button or link to add a new record. Create a new A record with these settings:

  • Name or Host: Leave blank or enter @ (this points the bare domain itself)
  • Type: A
  • Value or Points to: Your server's IP address
  • TTL: 3600 (or the default value)

Save the record. Players can now join using your domain name in the server address field. The change usually takes effect within minutes, but can take up to 48 hours in rare cases.

Adding an SRV record for custom ports

If your server runs on any port other than 25565, you need an SRV record instead of an A record. Not all registrars support SRV records — if yours does not, you will need to switch to one that does, or use a service like Cloudflare (which is free) to manage your DNS.

In your registrar's DNS settings, create a new SRV record with these values:

  • Service: _minecraft
  • Protocol: _tcp
  • Name or Host: Leave blank or enter @ (or your subdomain, like play.yourdomain.com)
  • Priority: 0
  • Weight: 0
  • Port: Your server's port number
  • Target or Points to: Your server's IP address

The full SRV record name will look like _minecraft._tcp.yourdomain.com when complete. Save it and wait for the change to propagate.

Using a subdomain instead of your main domain

You do not have to point your main domain (yourdomain.com) to the server. Many people create a subdomain like play.yourdomain.com or mc.yourdomain.com instead, so they can use the main domain for a website.

To do this, enter the subdomain name in the Name or Host field when creating your A or SRV record. For example, if you want play.yourdomain.com to point to your server, enter "play" in the Name field. The rest of the process is identical.

Testing your domain before telling players

After you add the DNS record, wait at least 5 to 10 minutes, then test the connection yourself. Open Minecraft, go to Multiplayer, and try to join using your domain name in the server address field. If it does not work, check these things:

  • Verify you entered the IP address and port correctly in the DNS record.
  • Make sure your server is actually running and accepting connections.
  • If you use a firewall or router, confirm the port is open and forwarded to your server.
  • Wait longer — DNS changes can take up to 48 hours, though this is rare.

You can also check your DNS record's status using a free tool like mxtoolbox.com or dnschecker.org. Search for your domain and record type (A or SRV) to see what the DNS system currently shows.

Switching registrars if yours does not support SRV records

Some older or budget registrars do not allow SRV records. If you need a custom port and your registrar does not support SRV, you have two options: switch your domain to a registrar that does, or use Cloudflare as your DNS provider while keeping your domain at your current registrar.

Cloudflare is free and supports SRV records. You point your domain's nameservers to Cloudflare's servers, then manage your DNS records through Cloudflare instead of your registrar. This takes about 10 minutes to set up and does not cost anything.

Frequently Asked Questions

How long does it take for the domain to work?

Most players see the domain working within minutes. DNS changes propagate at different speeds depending on your internet provider and location, so some players might need to wait up to 48 hours. If it works for you but not for a friend, they just need to wait longer or restart their game.

Do I need to change anything on my server itself?

No. Your server does not know or care what domain name points to it — it only listens on its IP address and port. The DNS record is purely for translating the domain name into that IP address on the player's end.

Can I point multiple domains to the same server?

Yes. Create the same A or SRV record for each domain or subdomain you own. They will all direct players to the same server IP address.

What if I move my server to a different IP address?

Update the IP address in your A or SRV record at your registrar. The domain name stays the same, but now points to the new IP. This change takes effect the same way as the first one — usually within minutes.

Is there a way to avoid DNS records altogether?

Not really. Players either need to type your IP address directly (which is hard to remember and changes if you switch hosts) or use a domain name (which requires DNS records). A domain name is the practical choice for any server you want people to join regularly.