DNS Zone: auto-filling from chosen template if values are empty
The new ISPconfig was built very nice and speeds up the work. Most general options can be configured through default template. But during adding a new DNS Zone (via DNS Wizard), all the fields have to be filled. The following fields can be filled from the template: NS1, NS2 and email.
Maybe it's a nice solution to pick the default values of the chosen template if the values are left empty. Pseudocode:
- NS1 = (field filled? use that value) else (grab first NS after [DNS_RECORDS] if available) still empty? -> error
- NS2 = (field filled? use that value) else (grab second NS after [DNS_RECORDS] if available) still empty? -> error
- NS3 = (field filled? use that value) else (grab third NS after [DNS_RECORDS] if available) still empty? -> continue
- NS4 = (field filled? use that value) else (grab fourth NS after [DNS_RECORDS] if available) still empty? -> continue
At least two nameservers are required. I read about NS3 and NS4 in the Bugtracker, so I wrote also the pseudocode for it for future use.
This is also for the 'email'-field.
- Email -> (field filled? use that value) else (grab mbox-value after [ZONE]) still empty? -> error