You can set your custom/private nameserver from WHM
Login to your WHM
Go to
Server Configuration»Basic WebHost Manager Setupor type “Basic” in the search box and it will display theBasic WebHost Manager Setupoption. Click on it.
Under Nameservers, Select
Explicitly Set the Nameserverand enter or change the nameserver in Nameserver 1, 2 field. Then, click onSave Changes.