From 1b2ebf7442cb816196ac35c505dd0a0a04bb3255 Mon Sep 17 00:00:00 2001 From: Adrian Ng Date: Fri, 17 Nov 2017 13:22:19 +1100 Subject: [PATCH] Use FQDN for hostnames in SRV records --- ecssd_agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecssd_agent.go b/ecssd_agent.go index 4cfec98..d902fcf 100644 --- a/ecssd_agent.go +++ b/ecssd_agent.go @@ -290,7 +290,7 @@ func createSRVRecordSet(dockerId, port, serviceName string) *route53.ResourceRec // weight: A relative weight for records with the same priority, higher value means more preferred // port: the TCP or UDP port on which the service is to be found // target: the canonical hostname of the machine providing the service - Value: aws.String("1 1 " + port + " " + configuration.Hostname), + Value: aws.String("1 1 " + port + " " + configuration.Hostname + "." + DNSName), }, }, SetIdentifier: aws.String(configuration.Hostname + ":" + dockerId),