How to connect your server to a domain:

Before we start you will need a domain. You can purchase a domain from Here or a registrars such as Namecheap or GoDaddy.

Visit your domain provider and locate the "Advanced DNS Zone". It may be called "DNS Zone" or "Advanced DNS", or anything similar.

Add an A record:

Set the name/subdomain to the subdomain you wish to use (e.g. play or mc)
Set the value/IP Address to your server IP (excluding the port)
If your server has a Dedicated IP (has the port 25565) you can stop here.
Note: The following steps are NOT RECOMMENDED. It is recommended to purchase a Dedicated IP for only $2.60/month. SRV records are buggy and some registrars don't support them.

Add an SRV Record:

Set the target as the sub-domain you used above (e.g. play or mc)
Set the protocol to '_tcp'
Set the service to '_minecraft'
Set the priority to 0
Set the weight to 5
DNS changes can take up to 48 hours to update, but most popular registrars update them instantly.