From baa501e0c502c13cdca8a3ba947256d5baf8a61b Mon Sep 17 00:00:00 2001 From: Kyle Havlovitz Date: Thu, 31 Aug 2017 03:35:59 -0700 Subject: [PATCH] Fill in the segment in the QuerySource for prepared query lookups --- agent/dns.go | 1 + 1 file changed, 1 insertion(+) diff --git a/agent/dns.go b/agent/dns.go index a8c50a297a..d9fcf4daba 100644 --- a/agent/dns.go +++ b/agent/dns.go @@ -778,6 +778,7 @@ func (d *DNSServer) preparedQueryLookup(network, datacenter, query string, req, // relative to ourself on the server side. Agent: structs.QuerySource{ Datacenter: d.agent.config.Datacenter, + Segment: d.agent.config.Segment, Node: d.agent.config.NodeName, }, }