How to configure DNS Name Servers using cPanel?
The domain name system ( DNS) is fiendishly complex, and it handles the nameservers that may be perplexing to control. Server administrators know how difficult it is to change DNS settings and wait patiently for them to propagate, only to find out that something has gone wrong and the site is still unachievable.
You’ll be pleased to learn that cPanel & WHM makes the management of domains and even a private nameserver super simple. We will discuss some basic DNS concepts in this post, and then show you how to configure a custom server with cPanel.
Until we wade into the sea, let’s make sure that we are on the same page with a few terms:
Domain names are the web address to which you access your browser. Industries use the domain names to advertise their websites. We all know what they look like, a sequence of letters and numbers separated by intervals that end with what is called a top-level domain. For case, the.com case.
IP Addresses are the special number used by the internet for routing data to its destination. IP is Internet Protocol and there are two specific types of IP addresses: IPv4 and IPv6 but for simplicity, we will stick to IPv4. And they look 198.51.100.85 A website has a human name, and an IP address, which is the computers that route data across the internet.
What are Nameservers?
Nameservers are the contacts app on the internet. You check for a name when you want to call someone and the app will give you their phone. Or put it another way, an app maps names of contacts or phone numbers.
For the internet, a DNS server does the same except that it assigns domain names to IP addresses. The routers and switches on the internet do not understand the domain names; they operate with IPs. Your browser knows the name of the site when you type in a web address or click on a connection, but it has to conduct a nameserver search to locate the corresponding IP address.
A tiny portion of a large network is just nameservers. The domain name structure is a server hierarchy, which falls into two broad categories: recursive and authentic. The person who knows the Mapping from the domain name to the IP address of the website is its authoritative DNS server.
On the Internet, there are hundreds of thousands of credible nameservers. How do you know a client asking who? This is the remedial nameserver function. A client asks an ISP-hosted recursive server to locate the right IP address and asks the remaining domain name network.
Recursive servers are an important component of the framework, but primarily we have an interest in a respectable set as webservers are also responsible for handling their client’s authoritative domains’ nameservers.
What are DNS records?
DNS records display whether domains suit IPs or other domains. This is contained in text archives known as zone files and is the basis of information repositories for responding to requests for search. Looks like a single record:
E.g .. com. A 198.51.100.85 IN A
Many forms of records are available. We used an “A database” to map a domain to an IP address in the example. The following are other types:
- CNAME records, which map one domain name to another. You might use a CNAME to point blog.example.com at example.com instead of having two “A records” for the same IP.
- MX records are Mail Exchanger records. They say where incoming mail should be sent.
- NS records indicate which DNS server is authoritative for a domain: ns1.mynameserver.com, for example.
Area files can contain hundreds of record types and other rules, but typically only the four can be modified in the cPanel interface.
Where can I find my cPanel DNS records?
cPanel generates and maintains records in response to changes you are making on the GUI, but also in the zone editor, you can edit zone files that are located on the cPanel home page domain site.
In the Zone Editor, it is easy to add, remove, and edit records for domains hosted on the server. Find the zone you would like to change, and click on Manage.
Where can I change cPanel name servers?
cPanel combines a PowerDNS server with low memory requirements, a high-performance server. The default is PowerDNS, but BIND can also be selected for recourse DNS or manual editing of zone files.
There are other options to include MyDNS and NSD, but they are both unreliable and will in future be excluded from cPanel.
The DNS file can only be changed by server administrators. In the server configuration section of the WHM sidebar menu, you can find the setting under Nameserver range. The name server on this page can also be deactivated. We suggest sticking to PowerDNS if you don’t need features in BIND only.
Custom nameserver configuration in cPanel?
The domains of your system must have an efficient DNS server. You can use a third party supplied, but you can also install one on your cPanel server locally. A private nameserver helps to host companies to send brand names like ns1.mycompany.com to their customers.
You regulate the domain as another advantage. You are not switching to another site for hosting servers and your domain will not have to change the configuration of your clients.
The setup of the private domain server is simple with cPanel & WHM. The first step is to ensure that the name server is disabled on the above nameserver GUI.
Next, navigate to Basic WebHost Manager® Setup in WHM’s Server Configuration menu.
At the bottom of the page, enter two domain names of your choice. Typically, these are named ns1.mydomain.com and ns2.mydomain.com, where mydomain.com is a domain associated with your server.
Click “Configure Address Records” next to each entry and verify that the IP address is the same as your cPanel server. This will add the necessary records to the zone file.
Ask the DNS server domain names of your registrar, finally. The method varies from one registrar to another, and you can review the files for the DNS server, or how to set up name servers in the cPanel & WHM Environment, including instructions for the various registrars and how to configure cPanel for DNS servers on various IPs. The procedure is different.
It could take some time to use your new server after this last move. The domain name network is massive and it needs records to spread around the world for some time, but all right, now you have a private nameserver that consumers can use for their domains.
The domain name scheme can be difficult to get through, but you only have to learn a few principles in most popular web hosting and server management scenarios. cPanel & WHM ensures that heavy lifting is easy to handle records and set up a private name server that suits the company and brand.
As normal, please let us know if you have any suggestions or feedback. You will support us in the best way possible. On Discord, on the cPanel forums, and on Reddit, you will find us.
How to configure DNS Name Servers using cPanel?