How to create Your Own Name Servers (ChildNameservers)
What is a “nameserver” you might ask? Every domain name that is used on the Internet needs to be registered. It doesn’t matter what the extension of the domain name is, the common requirement for all domain names is that it must have at least 2 nameservers assigned to it. The function of a nameserver is to answer queries of browser or email clients giving the IP address of the domain name. Nameservers are programs that run continuously on Internet servers and either give the IP address of the query or point to another nameserver at a higher level that might have the answer. This process continues until a “root” nameserver is reached which will have the answer if there is one to give.
Every cPanel server has the ability to run a nameserver program and is able to function as an Authoritative Nameserver for domain names. If you would like to run your own nameserver, you can associate your nameserver’s IP address with a personal nameserver using the Personal DNS Servers option in your Hosting or Domain Provider account. It allows to create glue records for your servers. You can input the nameserver name and IP address through your account, and this information will be submitted to the Registry.
you can register personal (private) nameservers with an IPv4 address in the following way:
Step 1 Since your domain name does have a registrar such as GoDaddy,Globehost , Namecheap, Enom, Network Solutions, or Reseller Club you would go to their site and find the place to register or record a “host name” for the domain name. Each registrar will have a little different terminology and procedure, but what you need to do is create a host name on your domain name and assign an IP address to that host name. A host name on a domain is the third level name.
An example of a host name is “ns1”. Adding this to our domain name we will need to register “ns1.yourwebsite.com” to the IP address of the server where this account is located. For example : ns1.yourwebsite.com – 184.108.40.206 ns2.yourwebsite.com – 220.127.116.11 Please Note 18.104.22.168 use for documentation in place of this you must use your server IP and yourwebsite.com will be your domain name..
Step 2 After we have registered our 2 custom nameservers, we need to add the host names to our DNS zone file. This is easily done on your cPanel server either in WHM or in cPanel, depending on how your account is structured. They would be entered as “A” records into the DNS zone file. If you only have one server, you may need to use the same IP address for both of your custom nameservers, HostName TTL Class Type Record ns1.yourwebsite.com 14400 IN A 22.214.171.124 ns1.yourwebsite.com 14400 IN A 126.96.36.199
Step 3 Once both of the previous steps are completed, you should wait at least 24 hours to be sure that your DNS changes have been completely propagated and are updated everywhere on the Internet. At this time you can either have your customers change the nameservers on their existing domains or any new customers can add your custom nameservers to their domain names when they sign up with you.
You can check your ow name servers after udating it on yourdomain from the below link : https://intodns.com