Merge pull request #586 from dankennedy/master

replaced consul domain with configured domain. Fixes #582
This commit is contained in:
Armon Dadgar 2015-01-08 10:21:06 -08:00
commit edbf4cf463
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