{"id":1911,"date":"2021-09-15T09:47:22","date_gmt":"2021-09-15T09:47:22","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=1911"},"modified":"2021-09-15T09:47:22","modified_gmt":"2021-09-15T09:47:22","slug":"private-nameserver-setup-for-vps-or-dedicated-server","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/private-nameserver-setup-for-vps-or-dedicated-server\/","title":{"rendered":"Private Nameserver Setup for VPS or Dedicated Server"},"content":{"rendered":"<article id=\"post-251\" class=\"post-251 post type-post status-publish format-standard hentry category-general tag-private-nameservers tag-vps-hosting ast-article-single\">\n<div class=\"ast-post-format- ast-no-thumb single-layout-1\">\n<div class=\"entry-content clear\">\n<h2>Private Nameserver setup for\u00a0<a href=\"https:\/\/www.eukhost.com\/vps-hosting\">VPS Hosting<\/a>\u00a0or\u00a0<a href=\"https:\/\/www.eukhost.com\/dedicated-servers\">Dedicated Server<\/a><\/h2>\n<p><strong>Step 1:<\/strong><\/p>\n<p>You will have to decide what nameservers you want to set on your\u00a0<strong>VPS \/ Dedicated Server \/ Reseller Hosting<\/strong>\u00a0Account. If you have the domain\u00a0<strong>\u201cmydomain.com\u201d<\/strong>\u00a0then you can make the\u00a0<strong>nameservers<\/strong>\u00a0<strong>ns1.domain.com<\/strong>\u00a0and\u00a0<strong>ns2.domain.com<\/strong>.<\/p>\n<p><strong>Step 2:<\/strong><\/p>\n<p>Open\u00a0<strong>http:\/\/IP\/whm<\/strong>\u00a0then go to<strong>\u00a0IP Functions &gt;&gt; show IP address usage<\/strong>\u00a0&amp; Check free IP over there or choose your primary and secondary\u00a0<strong>IP Address<\/strong>.<\/p>\n<p>You will need to register\u00a0<strong>nameservers<\/strong>\u00a0first from registrar end. Login to your registrar\u2019s domain\u00a0<strong>control panel<\/strong>\u00a0and register the\u00a0<strong>name server<\/strong>\u00a0or ask them to register the private name server for your domain.<\/p>\n<pre>-ns1.domain.com - the Default IP Of your server\r\n-ns2.domain.com - Secondary IP or free IP<\/pre>\n<p>Exception : In case if you have just one domain and you have set that name server for your other server and you want to use ns3.domain.com and ns4.domain.com name server for this server then you will have to set the dns for it from the dns zone file of domain.com if you have WHM then you can go to the server where this domain is resolving then open WHM &gt;&gt; Edit a DNS zone &gt;&gt; select domain from the list &gt;&gt; Edit at the end just add this line<\/p>\n<pre>ns3 In A First_IP\r\nns4 In A Second_IP<\/pre>\n<p>or if you are using shell then you can simply append following lines there in<\/p>\n<pre># vi \/var\/named\/domain.com.db\r\nns3 IN A First_IP\r\nns4 IN A Second_IP<\/pre>\n<p>Save the file.<\/p>\n<pre># service named reload\r\n\r\n# rndc reload domain.com<\/pre>\n<p><strong>Step 3:<\/strong><\/p>\n<p><strong>http:\/\/IP\/whm &gt;&gt; Basic cPanel\/WHM Setup<\/strong><\/p>\n<p>Scroll down to Primary Nameserver ns1.domain.com &amp; Click on \u201c<strong>Assign IP address<\/strong>\u201d and then \u201c<strong>Add an A entry for this name server<\/strong>\u201d<\/p>\n<p>Similarly for Secondary Nameserver ns2.domain.com Click on \u201c<strong>Assign IP address<\/strong>\u00a0\u201d and then \u201c<strong>Add an A entry for this name server<\/strong>\u201d<\/p>\n<p><strong>Step 4:<\/strong><\/p>\n<p>Once all done you can check if your nameservers have started resolving or not from<\/p>\n<pre>http:\/\/www.dnsstuff.com\/tools\/lookup.ch?name=ns1.domain.com&amp;type=A<\/pre>\n<p>Once you see the assigned IP address there then it means that the name server for your server are set.<br \/>\nCreate new account from your WHM and now you will just need to point your site from your registrar end to these\u00a0<strong>nameservers ns1.domain.com<\/strong>\u00a0and<strong>\u00a0ns2.domain<\/strong>.com if you want to resolve your site from this server.<\/p>\n<\/div>\n<\/div>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>Private Nameserver setup for\u00a0VPS Hosting\u00a0or\u00a0Dedicated Server Step 1: You will have to decide what nameservers you want to set on your\u00a0VPS \/ Dedicated Server \/ Reseller Hosting\u00a0Account. If you have the domain\u00a0\u201cmydomain.com\u201d\u00a0then you can make the\u00a0nameservers\u00a0ns1.domain.com\u00a0and\u00a0ns2.domain.com. Step 2: Open\u00a0http:\/\/IP\/whm\u00a0then go to\u00a0IP Functions &gt;&gt; show IP address usage\u00a0&amp; Check free IP over there or choose your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-1911","post","type-post","status-publish","format-standard","hentry","category-web-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Private Nameserver Setup for VPS or Dedicated Server - OWS KB<\/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:\/\/ownwebservers.com\/kb\/private-nameserver-setup-for-vps-or-dedicated-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Private Nameserver Setup for VPS or Dedicated Server - OWS KB\" \/>\n<meta property=\"og:description\" content=\"Private Nameserver setup for\u00a0VPS Hosting\u00a0or\u00a0Dedicated Server Step 1: You will have to decide what nameservers you want to set on your\u00a0VPS \/ Dedicated Server \/ Reseller Hosting\u00a0Account. If you have the domain\u00a0\u201cmydomain.com\u201d\u00a0then you can make the\u00a0nameservers\u00a0ns1.domain.com\u00a0and\u00a0ns2.domain.com. Step 2: Open\u00a0http:\/\/IP\/whm\u00a0then go to\u00a0IP Functions &gt;&gt; show IP address usage\u00a0&amp; Check free IP over there or choose your [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/private-nameserver-setup-for-vps-or-dedicated-server\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-15T09:47:22+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"admin\">\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\":\"WebSite\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"OWS KB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/ownwebservers.com\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/private-nameserver-setup-for-vps-or-dedicated-server\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/private-nameserver-setup-for-vps-or-dedicated-server\/\",\"name\":\"Private Nameserver Setup for VPS or Dedicated Server - OWS KB\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"datePublished\":\"2021-09-15T09:47:22+00:00\",\"dateModified\":\"2021-09-15T09:47:22+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/private-nameserver-setup-for-vps-or-dedicated-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/private-nameserver-setup-for-vps-or-dedicated-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/private-nameserver-setup-for-vps-or-dedicated-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/private-nameserver-setup-for-vps-or-dedicated-server\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/private-nameserver-setup-for-vps-or-dedicated-server\/\",\"name\":\"Private Nameserver Setup for VPS or Dedicated Server\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ba5db5841d48bd7517bb2583e13983e6d2fa56a4099a0b3c61ad2daefc321303?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ownwebservers.com\/kb\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1911","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=1911"}],"version-history":[{"count":1,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1911\/revisions"}],"predecessor-version":[{"id":1912,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1911\/revisions\/1912"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=1911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=1911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=1911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}