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

Status: 
Active

Comments

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

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

What i meant was

If i have a domain example.com and i create a new Virtual server foo. so instead of adding the entry for foo in zone file for example.com it creats a new zone called foo.example.com 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 example.com and all virtual servers in that zone.

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

Goto:

"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.

Ex.

mydomain.com

and

mysub.mydomain.com

will be added to the "/var/named/mydomain.com.hosts" 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.