{"id":2720,"date":"2025-02-01T09:27:51","date_gmt":"2025-02-01T09:27:51","guid":{"rendered":"https:\/\/pheonixsolutions.com\/knowledge-base\/?p=2720"},"modified":"2025-02-01T09:27:57","modified_gmt":"2025-02-01T09:27:57","slug":"how-to-take-backup-restore-dns-records-on-whm","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/02\/01\/how-to-take-backup-restore-dns-records-on-whm\/","title":{"rendered":"How to take backup &amp; restore DNS Records on WHM?"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Introduction:<\/h3>\n\n\n\n<p>When managing a WHM (Web Host Manager) server, ensuring the safety of your DNS records is crucial for disaster recovery and smooth server operation. Backing up DNS records allows you to restore configurations quickly in case of accidental deletions, migrations, or server failures.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Method 1: Backup DNS Zones Using WHM Interface<\/h3>\n\n\n\n<p>WHM provides an easy-to-use interface to enable DNS zone backups as part of its backup configuration.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Steps:<\/h4>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Log in to WHM as root.<\/li>\n\n\n\n<li>Navigate to <strong>&#8220;<\/strong>Backup&#8221; \u2192 &#8220;Backup Configuration<strong>&#8220;<\/strong>.<\/li>\n\n\n\n<li>Scroll down to the section labeled &#8220;Additional Backup Content&#8221;.<\/li>\n\n\n\n<li>Ensure that &#8220;Enable DNS Zone Backups&#8221; is checked.<\/li>\n\n\n\n<li>Click &#8220;Save Configuration&#8221;.<\/li>\n\n\n\n<li>To generate a manual backup, go to &#8220;Backup&#8221; \u2192 &#8220;Backup Now&#8221; and initiate the process.<\/li>\n<\/ol>\n\n\n\n<p>This method ensures that your DNS zones are included in your regular backup schedule.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Method 2: Manually Backup DNS Zones via SSH<\/h3>\n\n\n\n<p>If you prefer manual backups, we can directly copy DNS zone files from the WHM server.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Steps:<\/h4>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Connect to your server via SSH as root.<\/li>\n\n\n\n<li>Run the following command to create a compressed backup of all DNS records:<br><code>tar -czvf \/root\/dns_zones_backup.tar.gz \/var\/named\/<\/code><\/li>\n\n\n\n<li>This will create a file named <code>dns_zones_backup.tar.gz<\/code> containing all DNS zone files.<\/li>\n\n\n\n<li>To download the backup to your local machine, use <code>scp<\/code>:<br>scp root@your-server-ip:\/root\/dns_zones_backup.tar.gz \/your\/local\/path\/<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Method 3: Backup a Specific Domain&#8217;s DNS Records<\/h3>\n\n\n\n<p>If you need to back up only a particular domain&#8217;s DNS records, follow these steps:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Steps:<\/h4>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Locate the DNS zone file in <code>\/var\/named\/<\/code>.<\/li>\n\n\n\n<li>Run the following command to copy the specific domain\u2019s file:<br>cp \/var\/named\/example.com.db \/root\/example.com.db.backup<\/li>\n\n\n\n<li>Transfer the backup file to your local system using <code>scp<\/code> or FTP.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Restoring DNS Records<\/h4>\n\n\n\n<p>In case of a failure or accidental deletion, we can restore DNS records using the following steps:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Restore Full Backup:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>tar -xzvf \/root\/dns_zones_backup.tar.gz -C \/<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Restore a Specific Domain:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>cp \/root\/example.com.db.backup \/var\/named\/example.com.db<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Restart the DNS Service:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart named<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Conclusion<\/h4>\n\n\n\n<p>Backing up DNS records in WHM is a critical maintenance task that ensures websites and services remain accessible in case of issues. By utilizing WHM\u2019s built-in backup system, manual file copies, or the WHM API, we can protect our server from DNS-related disasters.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: When managing a WHM (Web Host Manager) server, ensuring the safety of your DNS records is crucial for disaster recovery and smooth server operation. Backing up DNS records allows you to restore configurations quickly in case of accidental deletions, migrations, or server failures. Method 1: Backup DNS Zones Using WHM Interface WHM provides an ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/02\/01\/how-to-take-backup-restore-dns-records-on-whm\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2720","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to take backup &amp; restore DNS Records on WHM? - PheonixSolutions Knowledge-Base<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/02\/01\/how-to-take-backup-restore-dns-records-on-whm\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to take backup &amp; restore DNS Records on WHM? - PheonixSolutions Knowledge-Base\" \/>\n<meta property=\"og:description\" content=\"Introduction: When managing a WHM (Web Host Manager) server, ensuring the safety of your DNS records is crucial for disaster recovery and smooth server operation. Backing up DNS records allows you to restore configurations quickly in case of accidental deletions, migrations, or server failures. Method 1: Backup DNS Zones Using WHM Interface WHM provides an ..Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/02\/01\/how-to-take-backup-restore-dns-records-on-whm\/\" \/>\n<meta property=\"og:site_name\" content=\"PheonixSolutions Knowledge-Base\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-01T09:27:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-01T09:27:57+00:00\" \/>\n<meta name=\"author\" content=\"Saikrishna Areddy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Saikrishna Areddy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/02\\\/01\\\/how-to-take-backup-restore-dns-records-on-whm\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/02\\\/01\\\/how-to-take-backup-restore-dns-records-on-whm\\\/\"},\"author\":{\"name\":\"Saikrishna Areddy\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/8a5f4b5a8e71659e5a3bbee27663d9ba\"},\"headline\":\"How to take backup &amp; restore DNS Records on WHM?\",\"datePublished\":\"2025-02-01T09:27:51+00:00\",\"dateModified\":\"2025-02-01T09:27:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/02\\\/01\\\/how-to-take-backup-restore-dns-records-on-whm\\\/\"},\"wordCount\":354,\"commentCount\":0,\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/02\\\/01\\\/how-to-take-backup-restore-dns-records-on-whm\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/02\\\/01\\\/how-to-take-backup-restore-dns-records-on-whm\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/02\\\/01\\\/how-to-take-backup-restore-dns-records-on-whm\\\/\",\"name\":\"How to take backup &amp; restore DNS Records on WHM? - PheonixSolutions Knowledge-Base\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#website\"},\"datePublished\":\"2025-02-01T09:27:51+00:00\",\"dateModified\":\"2025-02-01T09:27:57+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/8a5f4b5a8e71659e5a3bbee27663d9ba\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/02\\\/01\\\/how-to-take-backup-restore-dns-records-on-whm\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/02\\\/01\\\/how-to-take-backup-restore-dns-records-on-whm\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/02\\\/01\\\/how-to-take-backup-restore-dns-records-on-whm\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to take backup &amp; restore DNS Records on WHM?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/\",\"name\":\"PheonixSolutions Knowledge-Base\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/8a5f4b5a8e71659e5a3bbee27663d9ba\",\"name\":\"Saikrishna Areddy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g\",\"caption\":\"Saikrishna Areddy\"},\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/author\\\/saikrishna\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to take backup &amp; restore DNS Records on WHM? - PheonixSolutions Knowledge-Base","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/02\/01\/how-to-take-backup-restore-dns-records-on-whm\/","og_locale":"en_US","og_type":"article","og_title":"How to take backup &amp; restore DNS Records on WHM? - PheonixSolutions Knowledge-Base","og_description":"Introduction: When managing a WHM (Web Host Manager) server, ensuring the safety of your DNS records is crucial for disaster recovery and smooth server operation. Backing up DNS records allows you to restore configurations quickly in case of accidental deletions, migrations, or server failures. Method 1: Backup DNS Zones Using WHM Interface WHM provides an ..Read more","og_url":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/02\/01\/how-to-take-backup-restore-dns-records-on-whm\/","og_site_name":"PheonixSolutions Knowledge-Base","article_published_time":"2025-02-01T09:27:51+00:00","article_modified_time":"2025-02-01T09:27:57+00:00","author":"Saikrishna Areddy","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Saikrishna Areddy","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/02\/01\/how-to-take-backup-restore-dns-records-on-whm\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/02\/01\/how-to-take-backup-restore-dns-records-on-whm\/"},"author":{"name":"Saikrishna Areddy","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/8a5f4b5a8e71659e5a3bbee27663d9ba"},"headline":"How to take backup &amp; restore DNS Records on WHM?","datePublished":"2025-02-01T09:27:51+00:00","dateModified":"2025-02-01T09:27:57+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/02\/01\/how-to-take-backup-restore-dns-records-on-whm\/"},"wordCount":354,"commentCount":0,"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/02\/01\/how-to-take-backup-restore-dns-records-on-whm\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/02\/01\/how-to-take-backup-restore-dns-records-on-whm\/","url":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/02\/01\/how-to-take-backup-restore-dns-records-on-whm\/","name":"How to take backup &amp; restore DNS Records on WHM? - PheonixSolutions Knowledge-Base","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#website"},"datePublished":"2025-02-01T09:27:51+00:00","dateModified":"2025-02-01T09:27:57+00:00","author":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/8a5f4b5a8e71659e5a3bbee27663d9ba"},"breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/02\/01\/how-to-take-backup-restore-dns-records-on-whm\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/02\/01\/how-to-take-backup-restore-dns-records-on-whm\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/02\/01\/how-to-take-backup-restore-dns-records-on-whm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"How to take backup &amp; restore DNS Records on WHM?"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#website","url":"https:\/\/pheonixsolutions.com\/knowledge-base\/","name":"PheonixSolutions Knowledge-Base","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/knowledge-base\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/8a5f4b5a8e71659e5a3bbee27663d9ba","name":"Saikrishna Areddy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g","caption":"Saikrishna Areddy"},"url":"https:\/\/pheonixsolutions.com\/knowledge-base\/author\/saikrishna\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=2720"}],"version-history":[{"count":5,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2720\/revisions"}],"predecessor-version":[{"id":2727,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2720\/revisions\/2727"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=2720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=2720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=2720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}