From 3c43e0440ffe5d90db6999699a378b12c690d331 Mon Sep 17 00:00:00 2001 From: dankennedy Date: Thu, 8 Jan 2015 10:16:05 +0000 Subject: [PATCH] replaced consul domain with configured domain. Fixes #582 --- command/agent/dns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/dns.go b/command/agent/dns.go index 41f8df57b..ce434a948 100644 --- a/command/agent/dns.go +++ b/command/agent/dns.go @@ -201,7 +201,7 @@ func (d *DNSServer) handlePtr(resp dns.ResponseWriter, req *dns.Msg) { if arpa == qName { ptr := &dns.PTR{ Hdr: dns.RR_Header{Name: q.Name, Rrtype: dns.TypePTR, Class: dns.ClassINET, Ttl: 0}, - Ptr: fmt.Sprintf("%s.node.%s.consul.", n.Node, datacenter), + Ptr: fmt.Sprintf("%s.node.%s.%s.", n.Node, datacenter, d.domain), } m.Answer = append(m.Answer, ptr) break