Creating personal nameservers is a two step process. This guide describes how to make the necessary configuration changes on the cPanel/WHM side. In addition to this, you also need to ensure that the domain is configured properly at the registrar. Please see Registrar Configuration for info on how to complete this other step.
To setup a private (or personal) namesever on your cPanel machine, follow the steps below. If you are installing cPanel for the first time on your server, there will be a guided wizard upon your first login to aid you in creating your custom nameservers and you do not need to follow this guide. Please see this part of the cPanel installation guide for the initial walkthrough.
If you have any questions regarding the guided wizard however, you can refer to this article for reference.
You will also need to register your nameservers with the provider from whom you bought your domain as mentioned at the beginning of this article. Please see the following article for a guide to do so with various registrars: