A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
When you setup ZPanel on your server, it asks you during installation what the control panel URL should be - for example, zpanel.digitalocean.com. You then need to set up the sub-domain and point the A record to the IP address of your server.
You MUST NOT add the sub-domain to the ZPanel interface, as it causes all sorts of problems. This information is well documented on the ZPanel installation guide.