From 1bde6efa9fa0331dbd431fb42f208b4df530d88c Mon Sep 17 00:00:00 2001 From: bert hubert Date: Wed, 21 Dec 2016 14:07:56 +0100 Subject: [PATCH] remove hardcoding of port 53 for TCP/IP forwarded zones in recursor, to address #4799 --- pdns/lwres.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pdns/lwres.cc b/pdns/lwres.cc index dd2514457..f7eb2506c 100644 --- a/pdns/lwres.cc +++ b/pdns/lwres.cc @@ -173,9 +173,7 @@ int asyncresolve(const ComboAddress& ip, const DNSName& domain, int type, bool d s.bind(local); - ComboAddress remote = ip; - remote.sin4.sin_port = htons(53); - s.connect(remote); + s.connect(ip); uint16_t tlen=htons(vpacket.size()); char *lenP=(char*)&tlen; -- 2.40.0