From 9bea6fe3ee133b0075d34c30739298679393636e Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Thu, 14 Apr 2022 19:44:06 +0200 Subject: [PATCH] Fix port, as noted by ph1 on IRC Without this, probed DoT actually becomes regular TCP. --- pdns/syncres.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 064efa2b2a..3a41d1043a 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -5369,7 +5369,8 @@ int SyncRes::doResolveAt(NsSet &nameservers, DNSName auth, bool flawedNSSet, con doDoT = true; } if (!doDoT && s_max_busy_dot_probes > 0 && shouldDoDoT(*remoteIP, d_now.tv_sec)) { - doDoT = true; + remoteIP->setPort(853); + doDoT = true; } bool forceTCP = doDoT; -- 2.47.2