I know DNS is complicated...are you able to help me understand the journey? My overall objective is to serve websites for example.com, sub1.example.com, sub2.example.com, domain.com, sub1.domain.com, sub2.domain.com. My understanding is this:
1- Domain name example.com registered with registrar 2- Domain name delegated to Name Servers 3- Name server points domain to server with public IP 4- Server (with Virtualmin of course) serves pages with named based virtual hosts
Assuming that is correct, I'm ok with point 1 and 2. Re point 3...I've got an 'A' record pointing 'example.com' to my server's public IP, Virtualmin has setup a virtual server 'example.com' and all is sweet (I'm using freedns.afraid.org to experiment). Next, using Virtualmin I create sub1.example.com as a sub-server (I'm guessing I could create any kind of server with sub1.example.com domain?). At the moment, I have to then go to the DNS hosting (afraid.org) and create a sub-domain 'A' record that points to my server's public IP (along with www, ftp, mail variations). This works but....
What I want to do is be able to control all sub-domains of example.com on my server with Virtualmin. Ie I want example.com to point to my server but then have my server (Virtualmin) take care of all sub-domains / DNS.
Does that make sense?