replaced consul domain with configured domain. Fixes #582

This commit is contained in:
dankennedy 2015-01-08 10:16:05 +00:00
parent a24f6e3d4d
commit 63af8d08e1
1 changed files with 1 additions and 1 deletions

View File

@ -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