Skip to content

Commit

Permalink
Merge pull request #586 from dankennedy/master
Browse files Browse the repository at this point in the history
replaced consul domain with configured domain. Fixes #582
  • Loading branch information
armon committed Jan 8, 2015
2 parents a24f6e3 + 63af8d0 commit d5f1411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/agent/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5f1411

Please sign in to comment.