Template inherit (especially for DNS stuff)

As discussed here http://www.virtualmin.com/node/24133 it will be useful to inherit settings between servers and subservers / alias servers.

For DNS stuff, if you create a domain called master.com and then create an alias called alias.com, you'll find that dns zone for alias.com will be the same as master.com, except for DNS options (and that can cause problems).

In my case, the DNS did not inherit the secondary dns server and so the propagation to it failed because the allow-transfer was missing for alias.com (but it's ok for master.com).

Status: 
Closed (fixed)

Comments

So do you have Virtualmin setup to automatically create new DNS zones on remote slave nameservers? In that case, the allow-transfer directive should be set for any new domain (alias or otherwise) to allow those slaves. It won't be inherited from the original parent domain, as the list of nameservers to allow is already known.

This is my scenario: all domains are running on the virtualmin server, but domains can have different slave servers. I have made different templates to reflect this scenario.

Creating top-level servers is ok: all settings are get from the right template (choosed during the domain setup). But when I create alias domains (domains settings are obviously same as the parent domain), the DNS zone is copied from the parent domain, but dns settings are get from "default settings" template.

If the zone is copied from the parent domain (right!), I think even DNS options must be copied from that domain and not from "default settings", because there is the risk to mix different dns settings.

My solution, now, is to have templates for alias server with all DNS options already set, but it can result anyway in mistakes because, as already stated, the DNS zone is copied from the parent domain.

It will be a lot useful to have some "templates inherit" from the parent domain: infact, alias servers are just alias, so I'll expect to have the same settings from the main server except for the domain name.

Ok, I see what you mean now. It looks like the best fix for this is for alias domains to inherit the target domain's template by default - I will make this change in Virtualmin 3.96.

Thanks! It will be a lot useful :-)

Automatically closed -- issue fixed for 2 weeks with no activity.