Small question:
when a client ordered a webhosting package and choose the domain option "use an existing domain" in the cart. The module creates a zone for this domain, which is unnecessary because I don't manage this Domain.
Is this a bug, feature or for technical reasons?
Zone for "use an existing domain"
If an WHMCS product is set in SoluteDNS as DNS product the zone will be created based on the WHMCS product instead of the WHMCS domain. If an client orders an product with an existing domain the zone will be created for the domain the client provides as it's the domain for the ordered WHMCS product.
When the WHMCS product isn’t set as DNS product in SoluteDNS the zone will be created on the WHMCS domain instead. If the client now orders the product without domain the zone will not be created. You might however want to do additional processing in such cases as the product template is not applied to the zone as it’s now based on the WHMCS domain. You might find the After Zone Creation Hook and Internal API Apply Template tool useful for this. You can find more information about these tools in the documentation (development tools).
When the WHMCS product isn’t set as DNS product in SoluteDNS the zone will be created on the WHMCS domain instead. If the client now orders the product without domain the zone will not be created. You might however want to do additional processing in such cases as the product template is not applied to the zone as it’s now based on the WHMCS domain. You might find the After Zone Creation Hook and Internal API Apply Template tool useful for this. You can find more information about these tools in the documentation (development tools).