     #   doc["net-#{serviceName}"] = netcontainer
 
     addNetworking = (serviceName, service) ->
-      subDomain = "#{instance}.#{config.domain}"
+      subDomain = "#{instance}.#{config.domain}.#{config.tld}"
       service.net = 'none'
       service.dns_search = subDomain
       service.hostname = "#{serviceName}.#{subDomain}"

      else
        service.environment = _.merge {}, {"#{networkEnv}": networkValue}, service.environment

    for serviceName, service of doc
      addNetworking serviceName, service

    doc

_     = require 'lodash'
path  = require 'path'

module.exports = (config) ->
  networkValue = "ens192 -i eth0 @CONTAINER_NAME@ dhclient @#{config.vlan}"
