diff --git a/lib/docker.js b/lib/docker.js index 8629fe3b..d1d05f7b 100644 --- a/lib/docker.js +++ b/lib/docker.js @@ -367,7 +367,10 @@ App.prototype.createMorayClient = function createMorayClient() { host: self.config.moray.host, noCache: true, port: self.config.moray.port, - reconnect: true + reconnect: true, + dns: { + resolvers: [self.config.binder.domain] + } }; self.log.debug(conf, 'Creating moray client'); diff --git a/sapi_manifests/docker/template b/sapi_manifests/docker/template index a056637b..1bfa4b0f 100644 --- a/sapi_manifests/docker/template +++ b/sapi_manifests/docker/template @@ -31,6 +31,9 @@ "host": "{{{MORAY_SERVICE}}}", "port": 2020 }, + "binder": { + "domain": "{{{BINDER_SERVICE}}}" + }, "fwapi": { "url": "http://fwapi.{{{datacenter_name}}}.{{{dns_domain}}}" },