New

EmeraldHost 2.0 is here: faster, more intuitive, and made for everyone - the new panel!

Learn more
Guides
DNS RecordsMinecraft Server

How to Connect Your Domain to a Minecraft Server

Connect a domain to a Minecraft server

2 min read
Apr 2, 2026

You can make your Minecraft server reachable via your own domain, so players can connect using e.g. play.yourdomain.com or yourdomain.com – instead of an IP address.

Requirements

  • A domain with EmeraldHost
  • The IP address and port of your Minecraft server (you can find these in the dashboard of your server)

Connect with subdomain (e.g. play.yourdomain.com)

  1. Open DNS settings
    Open the management of your domain and click on DNS Settings.

  2. Create A record
    Create a new record with type A:

    Field Value
    Type A
    Name play
    Target Your server IP address
  3. Create SRV record
    Create a new record with type SRV so Minecraft can find the correct port:

    Name:

    Field Value
    Service Name _minecraft
    Protocol TCP
    Name play

    Target:

    Field Value
    Priority 0
    Weight 5
    Port Your server port
    Target play.yourdomain.com
  4. Test connection
    Wait a few minutes for the DNS changes to take effect, then connect in-game using play.yourdomain.com.

Connect without subdomain (e.g. yourdomain.com)

  1. Open DNS settings
    Open the management of your domain and click on DNS Settings.

  2. Create A record
    Create a new record with type A:

    Field Value
    Type A
    Name @
    Target Your server IP address
  3. Create SRV record
    Create a new record with type SRV:

    Name:

    Field Value
    Service Name _minecraft
    Protocol TCP
    Name leave empty

    Target:

    Field Value
    Priority 0
    Weight 5
    Port Your server port
    Target yourdomain.com
  4. Test connection
    Wait a few minutes for the DNS changes to take effect, then connect in-game using yourdomain.com.

Written byEmeraldHost Team
Last updated on Apr 9, 2026 Edit on GitHub

Did this article help you?

Your feedback helps us improve our guides.

Help shape the guides

€10.00 in credit for every new guide, €5.00 for every improvement.

Contact Support

Create a support ticket and our team will get back to you as soon as possible – personal and professional.

Go to Support
1257 members online

Discord Community

Connect with other players, get quick help from the community, and stay up to date with the latest news.

Join Discord

Join our Discord community 1257 members online right now