{"id":671,"date":"2024-09-25T11:35:35","date_gmt":"2024-09-25T11:35:35","guid":{"rendered":"https:\/\/resellerjungle.com\/articles\/?p=671"},"modified":"2024-09-25T11:35:39","modified_gmt":"2024-09-25T11:35:39","slug":"setup-and-manage-dns-with-cpanel","status":"publish","type":"post","link":"https:\/\/resellerjungle.com\/articles\/setup-and-manage-dns-with-cpanel\/","title":{"rendered":"Setup and Manage DNS with cPanel"},"content":{"rendered":"\n<p><strong>Setup and Manage DNS with cPanel<\/strong> is a crucial aspect of maintaining your website\u2019s accessibility and ensuring that domain names are correctly linked to the corresponding IP addresses. <\/p>\n\n\n\n<p><a href=\"https:\/\/www.squarebrothers.in\/hosting\/cpanel-hosting\" data-type=\"link\" data-id=\"https:\/\/www.squarebrothers.in\/hosting\/cpanel-hosting\" target=\"_blank\" rel=\"noopener\">cPanel <\/a>offers several tools to help you manage DNS for your domain&#8217;s DNS settings effectively. <\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#setup-and-manage-dns-with-c-panel\">Setup and Manage DNS with cPanel<\/a><ul><li><a href=\"#1-understanding-dns-basics\">1. Understanding DNS Basics<\/a><\/li><li><a href=\"#2-accessing-dns-tools-in-c-panel\">2. Accessing DNS Tools in cPanel<\/a><\/li><li><a href=\"#3-adding-and-modifying-a-records\">3. Adding and Modifying A Records<\/a><\/li><li><a href=\"#4-setting-up-cname-records\">4. Setting Up CNAME Records<\/a><\/li><li><a href=\"#5-configuring-mx-records-for-email\">5. Configuring MX Records for Email<\/a><\/li><li><a href=\"#6-setting-up-txt-records-for-spf-and-domain-verification\">6. Setting Up TXT Records for SPF and Domain Verification<\/a><\/li><li><a href=\"#7-managing-name-server-ns-records\">7. Managing Name Server (NS) Records<\/a><\/li><li><a href=\"#8-creating-and-managing-srv-records\">8. Creating and Managing SRV Records<\/a><\/li><li><a href=\"#9-setting-up-redirection-with-c-panel\">9. Setting Up Redirection with cPanel<\/a><\/li><li><a href=\"#10-backing-up-and-restoring-dns-zones\">10. Backing Up and Restoring DNS Zones<\/a><\/li><li><a href=\"#11-using-c-panels-dns-zone-editor-advanced-zone-editor\">11. Using cPanel&#8217;s DNS Zone Editor (Advanced Zone Editor)<\/a><\/li><li><a href=\"#12-dns-propagation-time\">12. DNS Propagation Time<\/a><\/li><li><a href=\"#conclusion\">Conclusion<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"setup-and-manage-dns-with-c-panel\">Setup and Manage DNS with cPanel<\/h2>\n\n\n\n<p>Here&#8217;s a detailed guide:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-understanding-dns-basics\">1. <strong>Understanding DNS Basics<\/strong><\/h3>\n\n\n\n<p>Before diving into the tools, it&#8217;s important to understand and manage DNS records and their functions:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>A Record<\/strong>: Points a domain or subdomain to an IP address.<\/li>\n\n\n\n<li><strong>CNAME Record<\/strong>: Points a domain or subdomain to another domain name (alias).<\/li>\n\n\n\n<li><strong>MX Record<\/strong>: Specifies the mail servers responsible for receiving email on behalf of your domain.<\/li>\n\n\n\n<li><strong>TXT Record<\/strong>: Stores text-based information for various purposes, including domain verification and SPF records for email.<\/li>\n\n\n\n<li><strong>NS (Name Server) Record<\/strong>: Specifies the authoritative DNS servers for the domain.<\/li>\n\n\n\n<li><strong>SRV Record<\/strong>: Defines services (such as VoIP or messaging) offered by the domain.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-accessing-dns-tools-in-c-panel\">2. <strong>Accessing DNS Tools in cPanel<\/strong><\/h3>\n\n\n\n<p>To set up and manage DNS, you&#8217;ll be using the <strong>Zone Editor<\/strong> and <strong>Advanced Zone Editor<\/strong> (if available).<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>How-To:<\/strong><br>Log in to cPanel and go to <strong>Domains > Zone Editor<\/strong>. Here, you can add, modify, or delete DNS records.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-adding-and-modifying-a-records\">3. <strong>Adding and Modifying A Records<\/strong><\/h3>\n\n\n\n<p>An <strong>A Record<\/strong> maps your domain to the server\u2019s IP address. This is essential for directing traffic to your site.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>How-To:<\/strong>\n<ol class=\"wp-block-list\">\n<li>In <strong>Zone Editor<\/strong>, click <strong>Manage<\/strong> DNS next to your domain.<\/li>\n\n\n\n<li>Click <strong>Add Record<\/strong> and choose <strong>A Record<\/strong>.<\/li>\n\n\n\n<li>Enter the domain (or subdomain) in the <strong>Name<\/strong> field and the corresponding IP address in the <strong>Record<\/strong> field.<\/li>\n\n\n\n<li>Click <strong>Add Record<\/strong>.<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n\n\n\n<p>Modifying existing A records is similar\u2014click <strong>Edit<\/strong> next to the record you want to change.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"4-setting-up-cname-records\">4. <strong>Setting Up CNAME Records<\/strong><\/h3>\n\n\n\n<p><strong>CNAME Records<\/strong> are useful when you want to point one domain or subdomain to another domain (like pointing <code>www.example.com<\/code> to <code>example.com<\/code>).<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>How-To:<\/strong>\n<ol class=\"wp-block-list\">\n<li>In <strong>Zone Editor<\/strong>, click <strong>Add Record<\/strong> and choose <strong>CNAME<\/strong>.<\/li>\n\n\n\n<li>In the <strong>Name<\/strong> field, enter the subdomain (e.g., <code>www<\/code> or <code>blog<\/code>).<\/li>\n\n\n\n<li>In the <strong>Record<\/strong> field, enter the domain you want to point to (e.g., <code><a href=\"https:\/\/resellerjungle.com\/linux-reseller-hosting\/\" data-type=\"link\" data-id=\"https:\/\/resellerjungle.com\/linux-reseller-hosting\/\">example.com<\/a><\/code>).<\/li>\n\n\n\n<li>Click <strong>Add Record<\/strong>.<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n\n\n\n<p>CNAME records simplify manage DNS by pointing multiple subdomains to a single domain.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"5-configuring-mx-records-for-email\">5. <strong>Configuring MX Records for Email<\/strong><\/h3>\n\n\n\n<p><strong>MX (Mail Exchange) Records<\/strong> direct email to your domain&#8217;s mail server. You need to update this record if you&#8217;re using a third-party email service <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>How-To:<\/strong>\n<ol class=\"wp-block-list\">\n<li>In <strong>Zone Editor<\/strong>, click <strong>Manage<\/strong> DNS next to your domain.<\/li>\n\n\n\n<li>Click <strong>Add Record<\/strong> and select <strong>MX Record<\/strong>.<\/li>\n\n\n\n<li>Enter the priority and the mail server domain (e.g., <code>mail.example.com<\/code>).<\/li>\n\n\n\n<li>Click <strong>Add Record<\/strong>.<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n\n\n\n<p>Prioritize multiple mail servers by setting lower priority numbers for primary servers.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"6-setting-up-txt-records-for-spf-and-domain-verification\">6. <strong>Setting Up TXT Records for SPF and Domain Verification<\/strong><\/h3>\n\n\n\n<p><strong>TXT Records<\/strong> store arbitrary text, which is often used for domain verification or to define SPF (Sender Policy Framework) records that help prevent email spoofing.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>How-To:<\/strong>\n<ol class=\"wp-block-list\">\n<li>In <strong>Zone Editor<\/strong>, click <strong>Add Record<\/strong> and select <strong>TXT Record<\/strong>.<\/li>\n\n\n\n<li>Enter the domain name or subdomain in the <strong>Name<\/strong> field.<\/li>\n\n\n\n<li>Enter the TXT data in the <strong>Record<\/strong> field (e.g., for SPF: <code>v=spf1 include:_spf.google.com ~all<\/code>).<\/li>\n\n\n\n<li>Click <strong>Add Record<\/strong>.<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n\n\n\n<p>TXT records are commonly used for validating domain ownership when setting up third-party services like Google or AWS.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"7-managing-name-server-ns-records\">7. <strong>Managing Name Server (NS) Records<\/strong><\/h3>\n\n\n\n<p><strong>NS Records<\/strong> tell the internet which name servers are authoritative for your domain. If you&#8217;re using a custom DNS provider (like Cloudflare), you\u2019ll need to update these records.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>How-To:<\/strong>\n<ol class=\"wp-block-list\">\n<li>In <strong>Zone Editor<\/strong>, locate the <strong>NS Records<\/strong> section.<\/li>\n\n\n\n<li>Click <strong>Edit<\/strong> next to the current NS records and replace them with your custom DNS provider\u2019s name servers.<\/li>\n\n\n\n<li>Click <strong>Save<\/strong>.<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n\n\n\n<p>Updating NS records may take time to propagate across the internet.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"8-creating-and-managing-srv-records\">8. <strong>Creating and Managing SRV Records<\/strong><\/h3>\n\n\n\n<p><strong>SRV Records<\/strong> are used to define the location of specific services (e.g., SIP, XMPP) within your domain.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>How-To:<\/strong>\n<ol class=\"wp-block-list\">\n<li>In <strong>Zone Editor<\/strong>, click <strong>Add Record<\/strong> and select <strong>SRV Record<\/strong>.<\/li>\n\n\n\n<li>Enter details like the service name, protocol, priority, weight, port, and target.<\/li>\n\n\n\n<li>Click <strong>Add Record<\/strong>.<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n\n\n\n<p>SRV records are essential when setting up services like VoIP or Microsoft Teams.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"9-setting-up-redirection-with-c-panel\">9. <strong>Setting Up Redirection with cPanel<\/strong><\/h3>\n\n\n\n<p>Use <strong>Redirects<\/strong> in cPanel to forward one domain or URL to another.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>How-To:<\/strong><br>Go to <strong>Domains > Redirects<\/strong>.\n<ul class=\"wp-block-list\">\n<li>Choose the domain or subdomain you want to redirect.<\/li>\n\n\n\n<li>Specify the URL to which you want to redirect it.<\/li>\n\n\n\n<li>Choose between <strong>Permanent (301)<\/strong> or <strong>Temporary (302)<\/strong> redirect types.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Redirects are useful for forwarding old domains or pages to new ones.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"10-backing-up-and-restoring-dns-zones\">10. <strong>Backing Up and Restoring DNS Zones<\/strong><\/h3>\n\n\n\n<p>Regular backups of your DNS zones can help prevent accidental data loss or misconfiguration.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>How-To:<\/strong><br>Use <strong>Zone Editor<\/strong> to manually back up your DNS records by exporting them or ask your hosting provider if they offer automatic DNS backups. To restore, use the <strong>Import Zone<\/strong> feature or manually re-enter the records if necessary.<\/li>\n<\/ul>\n\n\n\n<p>This practice ensures that any accidental changes can be quickly reversed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"11-using-c-panels-dns-zone-editor-advanced-zone-editor\">11. <strong>Using cPanel&#8217;s DNS Zone Editor (Advanced Zone Editor)<\/strong><\/h3>\n\n\n\n<p>The <strong>Advanced Zone Editor<\/strong> (if available) gives you more control over your DNS settings, including the ability to add advanced records like AAAA (IPv6) and SPF records.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>How-To:<\/strong><br>Go to <strong>Domains > Advanced Zone Editor<\/strong> and follow the same steps as in the Zone Editor to manage DNS (advanced DNS settings).<\/li>\n<\/ul>\n\n\n\n<p>The Advanced Zone Editor provides additional options for complex configurations.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"12-dns-propagation-time\">12. <strong>DNS Propagation Time<\/strong><\/h3>\n\n\n\n<p>Changes to DNS settings may take time to propagate across the internet, usually between a few minutes and 48 hours, depending on the TTL (Time to Live) value.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>How-To:<\/strong><br>After making changes, you can lower the TTL value (e.g., 300 seconds) in the Zone Editor to speed up propagation. Be aware that this can temporarily increase DNS traffic.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h3>\n\n\n\n<p>By using <strong>cPanel\u2019s DNS management features<\/strong>, you can efficiently control how your domain is resolved, ensuring your website, email, manage DNS and other services run smoothly. <\/p>\n\n\n\n<p>Regularly reviewing and updating DNS settings is essential for site stability and functionality.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setup and Manage DNS with cPanel is a crucial aspect of maintaining your website\u2019s accessibility and ensuring that domain names&hellip;<\/p>\n","protected":false},"author":3,"featured_media":679,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-671","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel"],"_links":{"self":[{"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/posts\/671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/comments?post=671"}],"version-history":[{"count":7,"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/posts\/671\/revisions"}],"predecessor-version":[{"id":678,"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/posts\/671\/revisions\/678"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/media\/679"}],"wp:attachment":[{"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/media?parent=671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/categories?post=671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/resellerjungle.com\/articles\/wp-json\/wp\/v2\/tags?post=671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}