Its clear from the question what I want to know but i do want to explain the entire situation first.

My Goal: I want to set up multi domain hosting panel on my server. Mostly it will serve my own existing clients.

As of now i've many shared hosting plans for clients (Website hosting). I found that i can save lot of money by getting a single VPS instead of getting & paying for separate shared hosting plans. So satisfy same i thought of purchasing and setting up my own hosting solution.

1) I've purchased a Droplet from Digital ocean and wanted to setup centOS + CentOS Web panel for the same.

2) I've purchased domain from my domain registrar. say for ex. mydomain.com.

Now my confusion is regarding NS records and DNS configuration. I wanted to know what should be my NS record, to be able to manage cpanel and multiple domain serving from same cpanel.

I want is my CWP - cpanel domain to be cpanel.mydomain.com. I also want to have a hosting home page or small website setup on main domain mydomain.com.

So the questions are.

1) What should be the NS record of my main domain (mydomain.com) at domain registrars domain control panel. whether it should point to ns1.digitalocean.com or it should be custom dns record that should be created in CWP (for ex ns1.mydomain.com).?

2) I want my cpanel hostname to be cpanel.mydomain.com, so where should i add CNAME record, in Digitalocean DNS record or in CWP DNS record.?

3) What's the relation of droplet name in digital ocean, is it related to hostname of server?

4) What all A, CNAME and MX record will be needed at digitalocean DNS configuration and in CWP DNS configuration.

5) Do I need to add mydomain.com website in CWP, if yes then what should be its DNS configuration. As this will be needed if i want to setup a hosting landing pages for marketing purpose.

This is getting too much confusing now as if i add domain in CWP, there also need DNS configuration, then what should be its NS record? do i need it there also?

i'll add more to this question latter. Anyone with already having experience of DigitalOcean+CWP can better explain this.

1 Answer 1


1) First of all, I will need to explain what is name server. The name server is the location of DNS server from where you can manage all your DNS records like A,MX,CNAME,etc. Domain provider and hosting control panel both provide option to host DNS service for your domain. You have few two options here. If you want to manage DNS records from domain control panel, you will have to use their default name servers. If you want to manage DNS records from hosting control panel (CWP), you will have to use custom name server pointing to your VPS IP address. Moreover, you can manage name server's from domain registrar's control panel only. If you set name server in CWP, it will not have any effect. Why it will not work? That is not our concern here so I will not go into the details here.

2) In order to access CWP using http://cpanel.mydomain.com, you will just need to create DNS A record for 'cpanel' pointing to your VPS IP address. One thing to note here, after pointing the domain name, you will have to add the port number in URL like "http://cpanel.mydomain.com:2030"

3) I never use digital ocean so I don't know this. But what I guess, it could be the VPS hostname. Generally, it is for identification purpose of your VPS.

4) I already have explained this in point-1

5) Yes, you will need to create a hosting account for your domain in CWP in order to be able to host landing page

To avoid name server's confusion, use the default name servers provided by domain registrar and use their DNS service. When you use the DNS service of domain registrar, any DNS configuration on CWP will be ignored, so you can leave it as it is.

  • Thanks a lot @mukesh for your insights.. It literally added lot of stuff to my information. Some time its like we create knowledge based on our understanding of concept and we don't have any confirmation, you added that confirmation for me. SO my problem is I know this stuff and my confusion is due to multiple places of DNS update adding confusion to my mind. For example Now Ive 3 Places for DNS.
    – Rajendra
    Commented Aug 12, 2017 at 10:32
  • For example Now Ive 3 Places for DNS. 1) Domain Registrar's panel 2) DigitalOcean Also provide a DNS panel to add domain to their server. 3) And CWP DNS place for added domain. Let me tell you what currently I've done. a) I've added digital ocean NS record to my domains registrars panel, ie currently my domain is pointing to ns1.digitalocean.com. b) So that i can manage DNS at DigitalOcean and also my TLD point to my server. c) Also i've added A record for TLD mydomain.com and cpanel.mydomain.com in digitalocean DNS record
    – Rajendra
    Commented Aug 12, 2017 at 10:43
  • d) I also added CNAME record for * and www so that my domain can be accessed from www. and any subdomain. e) I've also changed my hostname to cpanel.mydomain.com f) Now in CWP i've added this domain mydomain.com for webhosting and configured its DNS. not added any NS record for it. deleted free NS record added by CWP by default. Everything is working fine But don't know whether what I'm doing is proper way.
    – Rajendra
    Commented Aug 12, 2017 at 10:43
  • Yes, you are doing it properly. All DNS records for your domain will be resolved from digital ocean's DNS server. You can forget about DNS configuration on your VPS. It will be ignored. Just leave it as it is. You can check the DNS propagation on whatsmydns whatsmydns.net Commented Aug 12, 2017 at 11:23
  • Good. Which mean NS record at domain controller have higher privilege and all other NS settings else where is ignored even if its done at some place. I hope this correct! And thanks for www.whatsmydns.net this... I was really searching for something like this as I'm experimenting with NS. :) Thanks again!
    – Rajendra
    Commented Aug 12, 2017 at 12:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .