To use a custom domain, you will need to purchase one first!
Create an SRV record with the following values:
Host : <subdomain/@>
Service: _minecraft
Protocol: _tcp
Priority: 0
Weight: 5
Port: [custom port] - eg 65525
Target: [your server address] - eg DE-01.zettako.net
TTL: Automatic