mirror of https://github.com/status-im/consul.git
replaced consul domain with configured domain. Fixes #582
This commit is contained in:
parent
a24f6e3d4d
commit
63af8d08e1
|
@ -201,7 +201,7 @@ func (d *DNSServer) handlePtr(resp dns.ResponseWriter, req *dns.Msg) {
|
||||||
if arpa == qName {
|
if arpa == qName {
|
||||||
ptr := &dns.PTR{
|
ptr := &dns.PTR{
|
||||||
Hdr: dns.RR_Header{Name: q.Name, Rrtype: dns.TypePTR, Class: dns.ClassINET, Ttl: 0},
|
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)
|
m.Answer = append(m.Answer, ptr)
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue