       JDomain.assure { domain }, (err, domainObj) ->
         console.log err  if err
 
+        if domainObj.domain.indexOf("vm-") is -1
+          hostnameAliases = []
+        else
+          hostnameAliases = [hostnameAlias]
+
         if domainObj.isNew
-          domainObj.hostnameAlias = [hostnameAlias]
+          domainObj.hostnameAlias = hostnameAliases
           domainObj.proxy         = { mode: 'vm' }
           domainObj.regYears      = 0
+          domainObj.loadBalancer  = { persistance: 'disabled' }
           domainObj.save (err)->
             console.log err  if err
             updateRelationship domainObj
         else
           fields =
-            hostnameAlias : [hostnameAlias]
+            hostnameAlias : hostnameAliases
             proxy         : { mode: 'vm' }
             regYears      : 0
+            loadBalancer  : { persistance: 'disabled' }
           domainObj.update { $set: fields }, (err)->
             console.log err  if err
             updateRelationship domainObj

          JUser.one
            _id: vmUser[0].id
          , (err, user)=>
            if not err and user
              user.fetchAccount 'koding', (err, account)=>
                if not err and account
                  @ensureDomainSettings {account, vm, type, nickname, groupSlug}
                  @createDomains account, hostnameAliases, hostnameAliases[0]

  @parseAlias = (alias)->
    # group-vm alias
    if /^shared-[0-9]/.test alias
      result = alias.match /(.*)\.([a-z0-9-]+).kd.io$/
      if result
        [rest..., prefix, groupSlug] = result
        uid = parseInt(prefix.split(/-/)[1], 10)
        return {groupSlug, prefix, uid, type:'group', alias}
    # personal-vm alias
    else if /^vm-[0-9]/.test alias
      result = alias.match /(.*)\.([a-z0-9-]+)\.([a-z0-9-]+).kd.io$/
      if result
        [rest..., prefix, nickname, groupSlug] = result
        uid = parseInt(prefix.split(/-/)[1], 10)
