From 45b037b068df9a9a4dd89bf11dd8df2e526261e3 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Wed, 23 May 2018 17:47:35 +0200 Subject: [PATCH] ALIAS: Ensure correct name in TCP answer Fixes #6654 --- pdns/dnsproxy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsproxy.cc b/pdns/dnsproxy.cc index 34aeb688a..5c628f016 100644 --- a/pdns/dnsproxy.cc +++ b/pdns/dnsproxy.cc @@ -105,7 +105,7 @@ bool DNSProxy::completePacket(DNSPacket *r, const DNSName& target,const DNSName& for (auto &ip : ips) { - ip.dr.d_name = target; + ip.dr.d_name = aname; r->addRecord(ip); } -- 2.50.1