Anyone here know where ensim keeps the template for making its dns zone files for each domain (

I need to edit the template so when it rollsout a domain it creates wildcard dns automatically (for subdomain mod)

Someone here must have done this?
What file should i be finding because i have looked for ages now and its starting to get to me