     # Return type as internal and slug and domain
     return {type: 'internal', slug, prefix, domain}
 
-  resolveDomain = (domainData, callback)->
-
-    return callback null  unless domainData.domainType
+
+  resolveDomain = (domainData, callback, check)->
+
+    return callback null  unless check
 
     {domain} = domainData
 

      return callback null unless domains
      callback null, filterDomains domains, delegate, group

  parseDomain = (domain)->

    # Custom error

        if (intersection baseIps, remoteIps).length > 0
          return callback null

        callback new KodingError \
          """CNAME or A record for #{domain} is not
             matching with #{baseDomain}""", "CNAMEMISMATCH"


  createDomain = (options, callback)->
