Virtualmin creates test.two.com with a new DNS zone file, which is what is NOT anticipated. Instead it should add a record to existing two.com zone file.
Yes, the default is to create a new DNS zone for each Virtual Server.
If you like though, you could go into Server Configuration -> Server Templates -> Default -> BIND DNS Domain, and there you can set “Add sub-domain DNS records to parent domain?” to “Yes”.
I forgot to mention that “Add sub-domain DNS records to parent domain?” is set to Yes, but its still create separate dns zone file. That is the reason for my concern.
Can someone please test this functionality with their setup to confirm its working? I’m running Virtualmin 6.02 and can confirm that sub-domains aren’t being added to their parent domains. Before I open a bug report on this I’d like to confirm it’s not something on my end.
Steps to reproduce:
1. Create a server template with “yes” selected for “Add sub-domain DNS records to parent domain?” in the “Bind DNS Domain” section of the template
2. Create a new virtual server with domain name example.com
3. Create a sub-server named test.example.com under the example.com domain using the template created in step 1
4. Did Virtualmin create a separate zone file for test.example.com? You can check by examining the zones in the Bind DNS module or by examining the zones in /var/named/