       resolveDomain domain, (err)->
         return callback err  if err
 
+        JDomain.createDomain {
           domain, group, stack
           account: delegate
         }, callback
+
       , type is 'custom'
 
 

             matching with #{baseDomain}""", "CNAMEMISMATCH"


  createDomain = (options, callback)->

    { domain, account, group, stack, hostnameAlias } = options



    domains.forEach (domain) ->

      JDomain.createDomain {
        domain, account, group, stack
      }, (err, domain)->

