New DNS Zone is created when a new Virtual server is created using Virtual-server in Virtualmin

Whenever a new Virtual server is created, a new DNS Zone is created for that vhost

Is it possible to change this default behaviour, so that all of the vhost DNS entries happen in only one Main DNS Zone



This is only possible in Virtualmin if you are already hosting the domain and then create the virtual server. In fact, this is the default behaviour.

However, there's no way to have it put and in the same zone .. and I'm not even sure if BIND would allow that.

What i meant was

If i have a domain and i create a new Virtual server foo. so instead of adding the entry for foo in zone file for it creats a new zone called and adds the dns entries related to foo in that zone flle.

This results in multiple zones and zone files as opposed to a single domain and all virtual servers in that zone.

tpnsolutions's picture
Submitted by tpnsolutions on Mon, 11/09/2009 - 05:24


"System Settings > Server Templates > Default Settings > BIND DNS domain"

Change "Add sub-domain DNS records to parent domain?" to "Yes".

This will cause all sub-domains for a given domain to be added to the parent zone.



will be added to the "/var/named/" zone file.

In our virtualmin, when i did the same way, the option of "Add sub-domain DNS records to parent domain" is greyed out and can`t be changed.

I am using 3.49 version of Virtualmin. Can this be a problem

satbabar - there was a bug like this at one point, but I'm pretty sure it is fixed in the latest Virtualmin release.