I have bought a domain, let's call it example.net. I am setting up a CentOS 6 home server with CentOS Web-Panel. I am planning to host at least one site from this domain, possible 2 if I can use sub-domains like sub.example.net.
What should be my CentOS 6 server hostname?
I create a zone in the DNS manager. Options I fill are Zone/Domain: example.net and I also fill my xxx.xxx.xxx.xxx public IP of the server to the Web Server IP option. Primary NS and Secondary NS are ns1.centos-webpanel.com.
I am kind of confused about how this works. Do I put these 2 NS on my domain registrar to point to my site? And what are these 2 NS? Are they freely given to me by the WebPanel DNS service?
If I want to create a sub-domain, what do I do?