A nameserver is an interface by which a computer sends queries to decode a domain or subdomain on your server within an IP address. Your server cannot decode a domain into any IP addresses without a nameserver and all the websites of your server turn out to be unreachable through internet.
You can use your own domain name as a nameserver for the websites that are hosted by your server through cPanel Webhost Manager but at first you’ll have to set up a WHM Account to use you your own domain.
You can set up your nameserver through these steps easily;
Then, in the second row, do the following:
The next step is you have to register your nameservers with your domain’s registrar. Few registrars deliver you with an interface to set this up, and few other will have to do it by their own. In both cases, you will require the names of your nameservers with their IP addresses.
Now please be sure that the IP addresses are matching with the information given in your WHM account. If you are not done with this step, you will not be allowed to change any domains on these nameservers.
Now you know about this feature called nameserver in cPanel and how it works. You also know the procedure of setting up this feature with cPanel which helps you to access your own server with your own domain.