From: Pieter Lexis Date: Wed, 23 May 2018 15:47:35 +0000 (+0200) Subject: ALIAS: Ensure correct name in TCP answer X-Git-Tag: dnsdist-1.3.1~81^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=45b037b068df9a9a4dd89bf11dd8df2e526261e3;p=thirdparty%2Fpdns.git ALIAS: Ensure correct name in TCP answer Fixes #6654 --- diff --git a/pdns/dnsproxy.cc b/pdns/dnsproxy.cc index 34aeb688a0..5c628f0161 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); }