1. Login to cPanel and go to DOMAINS -> Advanced Zone Editor.

2. Enter the following details:
Type: Select A
Name is the subdomain, for example, if you want players to join using play.example.com, enter play as the name. If you want players to join just using example.com, enter @ as the name.
TTL should be 14400.
Address is the IP address of the server. Enter your IP address here without the port number.

3. Click Add Record once you have filled all the information for the SRV record.
ISPs and DNS providers cache DNS records. It can take up to 24 hours for your ISP/DNS Providers to update the A record and for it to start working for everyone.