From 5ebea7f049f3d3919c7e6a4eb4d6c499fdbc27a2 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 a8c50a297..d9fcf4dab 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, }, }