Submitted by satbabar on Thu, 11/05/2009 - 00:04
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
Submitted by JamieCameron on Thu, 11/05/2009 - 00:40 Comment #1
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.
Submitted by satbabar on Mon, 11/09/2009 - 04:10 Comment #2
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.
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.
Submitted by satbabar on Mon, 12/14/2009 - 02:52 Comment #4
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
Submitted by JamieCameron on Mon, 12/14/2009 - 11:40 Comment #5
satbabar - there was a bug like this at one point, but I'm pretty sure it is fixed in the latest Virtualmin release.