Author Topic: help with name servers  (Read 139 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
help with name servers
« on: October 28, 2024, 04:49:36 PM »
Hi everyone

Am new to CWP and setting up a web server - normally i purchase a reseller account but want to grow and start doing a lot more for myself server side wise.

I have installed CWP got it up and running with no problems how do i now create custom name servers for example ns1 and ns2.example.com and point them to the IP so when i need to host someone i can just say use these name servers.

i have a test server and a test domain name. Do i ask my register to create private servers or do i need to host the domain elsewhere and then setup some ns records?


Sorry for the basic question and sorry if its in the wrong section of the forum.

Thanks
Dave

Offline
*****
Re: help with name servers
« Reply #1 on: October 28, 2024, 05:24:37 PM »
You have to registered them at you domain registrar.
Some require that you have 2 different IP's.

We recommend Cloudflare for DNS, and it's an added layer of security.

Namecheap has a good KB article for their service at:
https://www.namecheap.com/support/knowledgebase/article.aspx/768/10/how-do-i-register-personal-nameservers-for-my-domain

Your registrar should have one also, if you don't use Namecheap.

Offline
**
Re: help with name servers
« Reply #2 on: October 28, 2024, 05:45:26 PM »
The simplest way:

1. Add one or more extra IPs to your dedicated server/vps. You have to assign as many IPs to the server as many nameservers you want to use.

2. Register the nameservers at your registrar to the main and extra ips of your server.

3. Add the  corresponding DNS A records for each nameserver at the DNS cluster used by the domain associated with your nameservers.

In this case you could provide your namesers for your users and you or your users won't have to manage the DNS records of each domain/subdomain you create on your server/vps.

However, this case has a disadvantage: If your server or bind (DNS service) running on your server is down then it will make all domain names including email service even if the domain uses 3rd party MX server is down too.

If you decide to use 3rd party DNS service like CloudFlare then you or your user will have to create DNS records (A,CNAME, MX, etc) for the domain/subdomain at CloudFlare every time when a new domain/subdomain is created on your server. To automate this process you can write scripts to add/remove/update DNS records at the external DNS service using hooks:
https://wiki.centos-webpanel.com/action-hooks

Offline
*
Re: help with name servers
« Reply #3 on: October 29, 2024, 09:43:36 AM »
Thank you will take a look at these posts. thanks for the help!