{"id":15737,"date":"2026-06-17T13:13:49","date_gmt":"2026-06-17T12:13:49","guid":{"rendered":"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/"},"modified":"2026-11-09T13:40:48","modified_gmt":"2026-11-09T12:40:48","slug":"how-to-set-up-a-private-dns-nameserver","status":"publish","type":"post","link":"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/","title":{"rendered":"How to Set Up a Private DNS Nameserver"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_87 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#What_Is_a_Private_DNS_Nameserver\" >What Is a Private DNS Nameserver?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Private_Nameservers_Child_Nameservers_and_Glue_Records\" >Private Nameservers, Child Nameservers and Glue Records<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#How_the_Setup_Fits_Together\" >How the Setup Fits Together<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#What_You_Need_Before_You_Begin\" >What You Need Before You Begin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Method_1_Configure_Private_Nameservers_in_cPanel_WHM\" >Method 1: Configure Private Nameservers in cPanel &amp; WHM<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Step_1_Select_the_nameserver_software\" >Step 1: Select the nameserver software<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Step_2_Set_the_default_nameserver_hostnames\" >Step 2: Set the default nameserver hostnames<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Step_3_Configure_address_records\" >Step 3: Configure address records<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Step_4_Register_the_nameservers_with_your_registrar\" >Step 4: Register the nameservers with your registrar<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Step_5_Delegate_your_domain_to_the_new_nameservers\" >Step 5: Delegate your domain to the new nameservers<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Method_2_Configure_Private_Nameservers_with_BIND_on_Linux\" >Method 2: Configure Private Nameservers with BIND on Linux<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Step_1_Install_BIND\" >Step 1: Install BIND<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Step_2_Define_the_authoritative_zone\" >Step 2: Define the authoritative zone<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Step_3_Create_the_zone_file\" >Step 3: Create the zone file<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Step_4_Validate_the_configuration_and_reload_BIND\" >Step 4: Validate the configuration and reload BIND<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Configure_a_Secondary_Nameserver\" >Configure a Secondary Nameserver<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Test_Your_Private_Nameserver_Configuration\" >Test Your Private Nameserver Configuration<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#1_Check_the_domains_delegated_nameservers\" >1. Check the domain&#8217;s delegated nameservers<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#2_Check_the_parent_zone_and_glue\" >2. Check the parent zone and glue<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#3_Query_each_authoritative_server_directly\" >3. Query each authoritative server directly<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#4_Check_website_and_mail_records\" >4. Check website and mail records<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Common_Private_Nameserver_Problems\" >Common Private Nameserver Problems<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Security_and_Reliability_Best_Practices\" >Security and Reliability Best Practices<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Frequently_Asked_Questions\" >Frequently Asked Questions<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Do_I_need_two_IP_addresses_to_create_private_nameservers\" >Do I need two IP addresses to create private nameservers?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Can_I_create_private_nameservers_on_shared_hosting\" >Can I create private nameservers on shared hosting?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-27\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Are_private_nameservers_the_same_as_private_DNS\" >Are private nameservers the same as private DNS?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-28\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Does_registering_child_nameservers_automatically_point_my_domain_to_them\" >Does registering child nameservers automatically point my domain to them?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-29\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#How_long_does_it_take_for_private_nameservers_to_work\" >How long does it take for private nameservers to work?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-30\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Can_I_use_the_same_private_nameservers_for_multiple_customer_domains\" >Can I use the same private nameservers for multiple customer domains?<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-31\" href=\"https:\/\/da-manager.com\/blog\/how-to-set-up-a-private-dns-nameserver\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<p>Want your hosting customers to use nameservers such as <strong>ns1.yourdomain.com<\/strong> and <strong>ns2.yourdomain.com<\/strong> instead of your upstream provider&#8217;s nameservers? You can create branded, or private, nameservers by registering child nameserver hostnames with your domain registrar, configuring authoritative DNS on your server, and delegating your domain to those nameservers.<\/p>\n<p>This guide explains how the pieces fit together and walks through the setup using cPanel &amp; WHM or BIND on a Linux server. It also covers glue records, secondary DNS, testing and security. The examples use placeholder domains and IP addresses. Replace them with values assigned to your own infrastructure.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_Is_a_Private_DNS_Nameserver\"><\/span>What Is a Private DNS Nameserver?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A private nameserver, often called a <strong>custom<\/strong> or <strong>vanity nameserver<\/strong>, is an authoritative DNS server identified by a hostname under your own domain. For example, a hosting provider might offer customers <code>ns1.yourdomain.com<\/code> and <code>ns2.yourdomain.com<\/code> rather than names under the upstream provider&#8217;s brand.<\/p>\n<p>In this context, \u201cprivate\u201d describes the branding of the nameserver hostname. It does not mean the DNS service is private or hidden from the public internet. If the nameservers are authoritative for public domains, they must be reachable by public DNS resolvers.<\/p>\n<p>Private nameservers are useful for hosting companies, resellers and agencies that manage DNS for multiple customer domains. They do not automatically mean that you own or operate a separate data centre. Your nameservers may still run on infrastructure supplied by another hosting provider.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Private_Nameservers_Child_Nameservers_and_Glue_Records\"><\/span>Private Nameservers, Child Nameservers and Glue Records<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>These terms describe related parts of the setup, but they are not interchangeable:<\/p>\n<ul>\n<li><strong>Private or vanity nameserver:<\/strong> the branded hostname, such as <code>ns1.yourdomain.com<\/code>.<\/li>\n<li><strong>Child nameserver (host object):<\/strong> a hostname registered with the domain&#8217;s registrar or registry and associated with one or more IP addresses.<\/li>\n<li><strong>Glue record:<\/strong> address information published by the parent zone to help resolvers find a nameserver when its hostname is inside the domain it serves.<\/li>\n<li><strong>DNS delegation:<\/strong> the parent zone&#8217;s instruction identifying which nameservers are authoritative for a domain.<\/li>\n<\/ul>\n<p>Glue is especially important for an in-bailiwick nameserver. For example, if <code>yourdomain.com<\/code> is delegated to <code>ns1.yourdomain.com<\/code>, a resolver needs an address for that nameserver before it can ask it for the domain&#8217;s DNS records. The parent zone supplies the glue address to break that circular dependency. Registrar interfaces and terminology vary, so follow the instructions for the registrar where the domain is registered.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_the_Setup_Fits_Together\"><\/span>How the Setup Fits Together<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li><strong>Choose the nameserver hostnames and server IP addresses.<\/strong> For example, <code>ns1.yourdomain.com<\/code> and <code>ns2.yourdomain.com<\/code>.<\/li>\n<li><strong>Configure authoritative DNS.<\/strong> Set up the DNS service and the zones it will serve on your server or DNS platform.<\/li>\n<li><strong>Register child nameservers with the registrar.<\/strong> Create the host objects and supply the correct IPv4 and, where supported, IPv6 addresses.<\/li>\n<li><strong>Delegate the domain.<\/strong> Set the domain&#8217;s authoritative nameservers to the new hostnames.<\/li>\n<li><strong>Test from outside your network.<\/strong> Check delegation, glue, authoritative responses and service availability.<\/li>\n<\/ol>\n<p>These steps may be completed in a different order depending on your provider, but the DNS service and its records should be ready before you move live domains to the new nameservers.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_You_Need_Before_You_Begin\"><\/span>What You Need Before You Begin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>A registered domain that you control, such as <code>yourdomain.com<\/code>.<\/li>\n<li>Access to the domain registrar&#8217;s DNS or host-record management area.<\/li>\n<li>One or preferably two stable server IP addresses. Separate servers and networks are preferable for resilience.<\/li>\n<li>Authoritative DNS software or a managed DNS service. Common options include PowerDNS and BIND.<\/li>\n<li>Administrative access to configure the DNS service, firewall and monitoring.<\/li>\n<li>A plan for DNS records, including website, email and verification records.<\/li>\n<\/ul>\n<p>Do not assume that a shared hosting account allows you to run nameserver software or register custom nameservers. These capabilities depend on the hosting plan, server permissions and registrar. If you only need to manage records for a website, your registrar&#8217;s or DNS provider&#8217;s nameservers may be simpler and more reliable.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Method_1_Configure_Private_Nameservers_in_cPanel_WHM\"><\/span>Method 1: Configure Private Nameservers in cPanel &amp; WHM<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>This method is for administrators with the required WHM privileges on a cPanel &amp; WHM server. The current cPanel documentation describes selecting nameserver software, setting default nameserver hostnames, creating address records and registering the nameservers with the registrar. The exact screens can vary by version and reseller permissions.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_1_Select_the_nameserver_software\"><\/span>Step 1: Select the nameserver software<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Sign in to WHM with an account that has the necessary server privileges. Open <strong>WHM &gt; Home &gt; Service Configuration &gt; Nameserver Selection<\/strong>, choose the supported DNS software and save the selection. cPanel &amp; WHM commonly uses PowerDNS by default; BIND is another option where supported. Do not enable a nameserver service unless you intend to operate it.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_2_Set_the_default_nameserver_hostnames\"><\/span>Step 2: Set the default nameserver hostnames<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Open <strong>WHM &gt; Home &gt; Server Configuration &gt; Basic WebHost Manager Setup<\/strong>. Find the Nameservers section and enter the hostnames you plan to use, for example:<\/p>\n<ul>\n<li><code>ns1.yourdomain.com<\/code><\/li>\n<li><code>ns2.yourdomain.com<\/code><\/li>\n<\/ul>\n<p>Save the changes. Use unique names for each nameserver and make sure the hostnames match the names you intend to register with your registrar.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_3_Configure_address_records\"><\/span>Step 3: Configure address records<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Next to each nameserver, use <strong>Configure Address Records<\/strong> to create or confirm its address record. Enter the correct IPv4 address for an A record and, if you operate IPv6 on that nameserver, the correct IPv6 address for an AAAA record. Do not publish an IPv6 address unless the server is genuinely reachable over IPv6.<\/p>\n<p>If the nameserver hostnames are in the same domain being served, the registrar&#8217;s child-host registration may also publish the corresponding glue information in the parent zone. The address records in your own DNS zone and the glue at the parent are related, but they are not the same record in the same place.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_4_Register_the_nameservers_with_your_registrar\"><\/span>Step 4: Register the nameservers with your registrar<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Sign in to the registrar where <code>yourdomain.com<\/code> is registered. Find an option such as <strong>Register Nameservers<\/strong>, <strong>Child Nameservers<\/strong>, <strong>Personal DNS Server<\/strong> or <strong>Host Records<\/strong>. Register each hostname with its assigned IP address:<\/p>\n<table>\n<thead>\n<tr>\n<th>Hostname<\/th>\n<th>Example address<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>ns1.yourdomain.com<\/code><\/td>\n<td><code>192.0.2.10<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>ns2.yourdomain.com<\/code><\/td>\n<td><code>192.0.2.20<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The addresses above are documentation-only examples from the reserved TEST-NET ranges. Do not copy them into a live configuration. Use the real IP addresses assigned to your DNS servers. Registrar procedures differ, so consult your registrar&#8217;s current instructions if you cannot find the host-record area.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_5_Delegate_your_domain_to_the_new_nameservers\"><\/span>Step 5: Delegate your domain to the new nameservers<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>After the nameserver service and host records are ready, update the domain&#8217;s nameserver settings at the registrar to use <code>ns1.yourdomain.com<\/code> and <code>ns2.yourdomain.com<\/code>. Registering a child nameserver does not, by itself, change the domain&#8217;s delegation. These are separate registrar actions.<\/p>\n<p>For cPanel&#8217;s official walkthrough, see <a href=\"https:\/\/docs.cpanel.net\/knowledge-base\/dns\/how-to-set-up-nameservers-in-a-cpanel-environment\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to Set Up Nameservers in a cPanel &amp; WHM Environment<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Method_2_Configure_Private_Nameservers_with_BIND_on_Linux\"><\/span>Method 2: Configure Private Nameservers with BIND on Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Use this method when you administer a Linux server directly and are responsible for its DNS service. The examples are illustrative. File paths, service names and package versions can differ between distributions. If your server is managed by a control panel, use its supported DNS configuration workflow rather than editing generated files manually.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_1_Install_BIND\"><\/span>Step 1: Install BIND<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>On Debian or Ubuntu systems where BIND is available from the configured package repositories, an administrator can install the packages with:<\/p>\n<pre><code>sudo apt update\nsudo apt install bind9 bind9-utils<\/code><\/pre>\n<p>On other distributions, use the package manager and package names documented for that operating system. Keep BIND and the operating system updated.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_2_Define_the_authoritative_zone\"><\/span>Step 2: Define the authoritative zone<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Configure BIND to load the zone for your domain. A simplified primary-zone declaration may look like this in the appropriate BIND configuration file:<\/p>\n<pre><code>zone \"yourdomain.com\" {\n    type primary;\n    file \"\/etc\/bind\/zones\/db.yourdomain.com\";\n};<\/code><\/pre>\n<p>Use the configuration include structure and directory conventions for your distribution. Ensure the zone file is readable by the BIND service account and that configuration files are protected from unauthorised modification.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_3_Create_the_zone_file\"><\/span>Step 3: Create the zone file<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>A simplified zone file for <code>yourdomain.com<\/code> could look like this:<\/p>\n<pre><code>$TTL 3600\n@   IN  SOA ns1.yourdomain.com. hostmaster.yourdomain.com. (\n        2026110901 ; serial: increment after each zone change\n        3600       ; refresh\n        900        ; retry\n        1209600    ; expire\n        300        ; negative caching TTL\n)\n@       IN  NS      ns1.yourdomain.com.\n@       IN  NS      ns2.yourdomain.com.\nns1     IN  A       192.0.2.10\nns2     IN  A       192.0.2.20\n@       IN  A       192.0.2.30\nwww     IN  CNAME   yourdomain.com.<\/code><\/pre>\n<p>This is a teaching example, not a complete production zone. Replace the documentation-only addresses with the real addresses for your environment. Add and validate the MX, TXT, AAAA and other records required by your services. The trailing dots on fully qualified domain names in zone files are important. Ensure the SOA serial is increased whenever you publish a zone change.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_4_Validate_the_configuration_and_reload_BIND\"><\/span>Step 4: Validate the configuration and reload BIND<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Before reloading the service, check the main configuration and the zone file. For example:<\/p>\n<pre><code>sudo named-checkconf\nsudo named-checkzone yourdomain.com \/etc\/bind\/zones\/db.yourdomain.com<\/code><\/pre>\n<p>Correct any reported errors before proceeding. Then reload the BIND service using the service name for your distribution, for example:<\/p>\n<pre><code>sudo systemctl reload bind9<\/code><\/pre>\n<p>Check the service status and system logs. A successful reload does not prove that public delegation or external connectivity is correct, so continue with the tests later in this guide.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Configure_a_Secondary_Nameserver\"><\/span>Configure a Secondary Nameserver<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Two nameserver hostnames do not automatically provide redundancy. If both hostnames resolve to the same server, share the same network path or depend on the same power and connectivity, one incident can take both offline. For important domains, use separate systems and, where possible, separate networks or locations.<\/p>\n<p>In a BIND primary\/secondary arrangement, the primary serves the writable zone and the secondary obtains zone data through DNS zone transfers. A simplified primary-zone configuration can restrict transfers to the secondary server:<\/p>\n<pre><code>zone \"yourdomain.com\" {\n    type primary;\n    file \"\/etc\/bind\/zones\/db.yourdomain.com\";\n    allow-transfer { 192.0.2.20; };\n    also-notify { 192.0.2.20; };\n};<\/code><\/pre>\n<p>The secondary server needs a corresponding secondary-zone declaration. For example:<\/p>\n<pre><code>zone \"yourdomain.com\" {\n    type secondary;\n    file \"\/var\/cache\/bind\/db.yourdomain.com\";\n    primaries { 192.0.2.10; };\n};<\/code><\/pre>\n<p>These snippets must be adapted to your BIND version, filesystem permissions and network design. Restrict zone transfers to authorised secondary servers, use appropriate authentication such as TSIG where supported, and permit the required DNS traffic between the servers. Do not expose unrestricted AXFR transfers to the public.<\/p>\n<p>For a deeper explanation of authoritative DNS design and zone transfers, consult the <a href=\"https:\/\/kb.isc.org\/docs\/bind-best-practices-authoritative\" target=\"_blank\" rel=\"noopener noreferrer\">ISC BIND authoritative-server best practices<\/a> and its guidance on <a href=\"https:\/\/kb.isc.org\/docs\/tuning-your-bind-configuration-effectively-for-zone-transfers\" target=\"_blank\" rel=\"noopener noreferrer\">BIND zone transfers<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Test_Your_Private_Nameserver_Configuration\"><\/span>Test Your Private Nameserver Configuration<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Test from a machine outside the DNS server&#8217;s network where possible. Replace the example domain and IP addresses with your actual values.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"1_Check_the_domains_delegated_nameservers\"><\/span>1. Check the domain&#8217;s delegated nameservers<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre><code>dig NS yourdomain.com<\/code><\/pre>\n<p>Confirm that the response lists the intended authoritative nameservers. This query uses the resolver configured on your machine; it is useful as a first check but does not by itself confirm that every parent delegation is correct.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_Check_the_parent_zone_and_glue\"><\/span>2. Check the parent zone and glue<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Query the appropriate parent or registry nameserver for your domain&#8217;s top-level domain. For a .com example, you can inspect the parent response with:<\/p>\n<pre><code>dig @a.gtld-servers.net yourdomain.com NS<\/code><\/pre>\n<p>Review the authority and additional sections. For in-bailiwick nameservers, confirm that the glue addresses match the current addresses of the authoritative servers. The correct parent server depends on the domain&#8217;s extension.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_Query_each_authoritative_server_directly\"><\/span>3. Query each authoritative server directly<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre><code>dig @192.0.2.10 yourdomain.com SOA\ndig @192.0.2.10 yourdomain.com NS\ndig @192.0.2.20 yourdomain.com SOA<\/code><\/pre>\n<p>Both servers should return authoritative answers for the zone. Compare the SOA serial numbers to confirm that the secondary has received the latest zone version.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_Check_website_and_mail_records\"><\/span>4. Check website and mail records<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre><code>dig @192.0.2.10 yourdomain.com A\ndig @192.0.2.10 yourdomain.com MX\ndig @192.0.2.10 yourdomain.com TXT<\/code><\/pre>\n<p>Confirm that the responses contain the values your website, email provider and verification services require. A nameserver can answer NS queries correctly while individual A, MX or TXT records are still missing or incorrect.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Common_Private_Nameserver_Problems\"><\/span>Common Private Nameserver Problems<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<table>\n<thead>\n<tr>\n<th>Problem<\/th>\n<th>What to check<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Nameserver hostname does not resolve<\/td>\n<td>Check the child-host registration, parent glue where required, and A\/AAAA records in the authoritative zone.<\/td>\n<\/tr>\n<tr>\n<td>Domain reports SERVFAIL<\/td>\n<td>Check delegation, authoritative server reachability, zone loading and DNSSEC\/DS records.<\/td>\n<\/tr>\n<tr>\n<td>One nameserver has old records<\/td>\n<td>Compare SOA serials, check NOTIFY and zone-transfer permissions, and inspect secondary-server logs.<\/td>\n<\/tr>\n<tr>\n<td>Queries time out<\/td>\n<td>Confirm the DNS service is listening on the public interface and that TCP and UDP port 53 are permitted by the firewall and network provider.<\/td>\n<\/tr>\n<tr>\n<td>Website works but email fails<\/td>\n<td>Review MX, A\/AAAA and mail-provider TXT records. Nameserver setup does not create correct mail records automatically.<\/td>\n<\/tr>\n<tr>\n<td>DNSSEC validation fails<\/td>\n<td>Check that the DS record at the parent matches the active DNSKEY and signing configuration. Incorrect or stale DS data can make a domain fail validation.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>For further diagnostics, Google&#8217;s <a href=\"https:\/\/developers.google.com\/speed\/public-dns\/docs\/troubleshooting\/domains\" target=\"_blank\" rel=\"noopener noreferrer\">domain troubleshooting guide<\/a> explains how to investigate delegation, authoritative-server health and DNSSEC problems.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Security_and_Reliability_Best_Practices\"><\/span>Security and Reliability Best Practices<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li><strong>Use independent servers:<\/strong> place primary and secondary nameservers on separate systems and, where practical, separate networks or locations.<\/li>\n<li><strong>Restrict zone transfers:<\/strong> allow transfers only to authorised secondary servers and use authenticated transfer controls where supported.<\/li>\n<li><strong>Do not run an open resolver:<\/strong> public authoritative DNS should not unintentionally provide unrestricted recursive DNS service to the internet.<\/li>\n<li><strong>Protect management access:<\/strong> use SSH keys, strong access controls, least privilege and timely security updates.<\/li>\n<li><strong>Monitor availability:<\/strong> monitor authoritative responses, service health, SOA serial consistency and expiry of relevant domain registrations.<\/li>\n<li><strong>Back up zone data:<\/strong> keep tested backups and document how to restore the DNS service.<\/li>\n<li><strong>Plan DNSSEC carefully:<\/strong> if you sign zones, coordinate DNSKEY and DS changes with the parent registrar or registry. Do not publish a DS record that does not match the active signing keys.<\/li>\n<li><strong>Document every change:<\/strong> record IP assignments, registrar host objects, zone files, TTL values and the person responsible for updates.<\/li>\n<\/ul>\n<p>For authoritative operational guidance, see the <a href=\"https:\/\/kb.isc.org\/docs\/bind-best-practices-authoritative\" target=\"_blank\" rel=\"noopener noreferrer\">ISC recommendations for authoritative BIND servers<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Frequently_Asked_Questions\"><\/span>Frequently Asked Questions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Do_I_need_two_IP_addresses_to_create_private_nameservers\"><\/span>Do I need two IP addresses to create private nameservers?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You need reachable address records for the nameservers you publish. Two distinct IP addresses and independently operated servers are recommended for resilience, but simply assigning two IP addresses to one machine does not provide true server redundancy. Ask your hosting provider what address and network options are available.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Can_I_create_private_nameservers_on_shared_hosting\"><\/span>Can I create private nameservers on shared hosting?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Usually, a standard shared hosting account does not give you the privileges needed to operate authoritative DNS software or configure server-level services. Some providers offer branded reseller nameservers as part of a reseller plan. Confirm the feature with your provider before registering hostnames.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Are_private_nameservers_the_same_as_private_DNS\"><\/span>Are private nameservers the same as private DNS?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>No. Private nameservers in this guide are branded authoritative nameservers for domains. Private DNS can also refer to internal DNS zones or encrypted DNS services. Check which meaning applies to your particular requirement.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Does_registering_child_nameservers_automatically_point_my_domain_to_them\"><\/span>Does registering child nameservers automatically point my domain to them?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>No. Registering the child hostnames and their addresses makes the nameserver host objects known to the registrar or registry. You must also configure the DNS service and update the domain&#8217;s delegation to use those nameservers.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_long_does_it_take_for_private_nameservers_to_work\"><\/span>How long does it take for private nameservers to work?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>There is no universal propagation time. Registrar processing, parent-zone publication, cached delegation data and record TTLs all affect when different resolvers see the change. Test the parent delegation and query the authoritative servers directly instead of relying only on a propagation checker.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Can_I_use_the_same_private_nameservers_for_multiple_customer_domains\"><\/span>Can I use the same private nameservers for multiple customer domains?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Yes, a hosting provider can operate a set of authoritative nameservers for many domains. Each customer domain still needs its own correctly configured DNS zone and delegation. Keep customer zones isolated and ensure that each domain&#8217;s records are maintained accurately.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Setting up private DNS nameservers involves more than choosing branded hostnames. You must configure authoritative DNS, register child nameservers and any required glue records with the registrar, delegate the domain, and test that the primary and secondary servers respond correctly.<\/p>\n<p>For cPanel &amp; WHM administrators, use the supported WHM nameserver configuration workflow. For administrators managing DNS directly, configure and validate BIND carefully, restrict zone transfers and build in independent redundancy. Once the setup is working, document it and monitor it as part of your hosting infrastructure.<\/p>\n<p>If you want to strengthen your understanding of DNS before making changes, read our guides to <a href=\"https:\/\/da-manager.com\/blog\/what-is-dns-and-how-does-it-work-with-web-hosting\/\">how DNS works with web hosting<\/a>, <a href=\"https:\/\/da-manager.com\/blog\/what-is-nameserver-propagation\/\">nameserver propagation<\/a> and <a href=\"https:\/\/da-manager.com\/blog\/what-are-a-records-b-records-and-cname-records-in-dns\/\">common DNS records<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to set up private nameservers using cPanel\/WHM or BIND. This guide covers child nameserver registration, glue records, DNS delegation, secondary servers and testing.<\/p>\n","protected":false},"author":16,"featured_media":16441,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mbp_gutenberg_autopost":false,"footnotes":""},"categories":[147,219],"tags":[333,3968,133,220],"class_list":["post-15737","post","type-post","status-publish","format-standard","has-post-thumbnail","category-general","category-hosting","tag-cpanel","tag-dns","tag-domain","tag-hosting"],"jetpack_featured_media_url":"https:\/\/da-manager.com\/blog\/wp-content\/uploads\/2026\/06\/private-dns-nameserver-clean-da-manager.png","_links":{"self":[{"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/posts\/15737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/comments?post=15737"}],"version-history":[{"count":1,"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/posts\/15737\/revisions"}],"predecessor-version":[{"id":16439,"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/posts\/15737\/revisions\/16439"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/media\/16441"}],"wp:attachment":[{"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/media?parent=15737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/categories?post=15737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/da-manager.com\/blog\/wp-json\/wp\/v2\/tags?post=15737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}