{"id":56425,"date":"2020-07-28T14:54:32","date_gmt":"2020-07-28T19:54:32","guid":{"rendered":"https:\/\/blog.cpanel.com\/?p=56425"},"modified":"2020-07-28T14:54:32","modified_gmt":"2020-07-28T19:54:32","slug":"how-to-configure-dns-nameservers-with-cpanel","status":"publish","type":"post","link":"https:\/\/devel.www.cpanel.net\/blog\/tips-and-tricks\/how-to-configure-dns-nameservers-with-cpanel\/","title":{"rendered":"How to Configure DNS Nameservers with cPanel"},"content":{"rendered":"\n
The domain name system (DNS) is fiendishly complicated, and managing the nameservers that power it can be perplexing. Server administrators know how frustrating it is to change DNS configurations and patiently wait for them to propagate, only to find out something went wrong and the site is still unreachable.<\/p>\n\n\n\n
You\u2019ll be happy to hear that cPanel & WHM makes it super easy to manage domains and even a private nameserver. In this article, we\u2019re going to explore some essential DNS concepts and then show you how to configure a custom server with cPanel.<\/p>\n\n\n\n
Before we wade into the deep end, let\u2019s make sure we\u2019re on the same page with a couple of terms:<\/p>\n\n\n\n
A website has a name, which is for humans, and an IP address, which is for the machines that route data around the internet.<\/p>\n\n\n\n
Nameservers are the internet\u2019s contacts app. When you want to call someone, you search for a name, and the app gives you their number. To put it another way, a contacts app maps<\/em> names to phone numbers.<\/p>\n\n\n\n A DNS server does the same for the internet, except it maps domain names to IP addresses. The internet\u2019s routers and switches don\u2019t understand domain names; they work with IPs. When you type a web address or click on a link, your browser knows the site\u2019s name, but it has to execute a nameserver lookup to find out the matching IP address.<\/p>\n\n\n\n Each nameserver is a tiny part of a vast network. The domain name system is a hierarchical arrangement of servers that fall into two broad categories: recursive and authoritative. The one that knows the mapping between a site\u2019s domain name and IP address is its authoritative DNS server<\/em>; it\u2019s the definitive source of truth about that domain. <\/p>\n\n\n\n There are hundreds of thousands of authoritative nameservers on the internet. How does a browser know which one to ask? That\u2019s the role of recursive nameservers<\/em>. A browser asks a recursive server, often hosted by an ISP, to find the right IP address, and it asks the rest of the domain name system.<\/p>\n\n\n\n Recursive servers are an essential component of the domain name system, but we\u2019re primarily interested in the authoritative variety because web hosts often manage the authoritative nameserver for their client\u2019s domains.<\/p>\n\n\n\n DNS records indicate how domains correspond to IPs or other domains. They are stored in text documents called zone files, and they are the source of the information nameservers use to respond to lookup requests. A single record looks like this:<\/p>\n\n\n\n example.com. IN A 198.51.100.85 There are numerous types of records. In the example, we used an \u201cA record,\u201d which maps a domain to an IP address. Other types include:<\/p>\n\n\n\n Zone files can contain dozens of record types and other directives, but you will usually only need to edit these four, which can be done in the cPanel interface.<\/p>\n\n\n\n cPanel creates and manages records in response to changes you make in the interface, but you can also edit zone files in the Zone Editor, which you will find in the Domains section of the cPanel Home page.<\/p>\n\n\n\nWhat Are DNS Records?<\/strong><\/h2>\n\n\n\n
<\/p>\n\n\n\nHow Do I Find My DNS Records in cPanel?<\/strong><\/h3>\n\n\n\n