From 267888e2eda3f2b0d7673815b199c2820fc30027 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 7 Aug 2021 12:31:45 +0530 Subject: [PATCH] AuthZoneManager: fixed issue of slow XFR responses for secondary root zones or large zones. --- DnsServerCore/Dns/ZoneManagers/AuthZoneManager.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/DnsServerCore/Dns/ZoneManagers/AuthZoneManager.cs b/DnsServerCore/Dns/ZoneManagers/AuthZoneManager.cs index 0d05df33..e1971293 100644 --- a/DnsServerCore/Dns/ZoneManagers/AuthZoneManager.cs +++ b/DnsServerCore/Dns/ZoneManagers/AuthZoneManager.cs @@ -832,16 +832,12 @@ namespace DnsServerCore.Dns.ZoneManagers xfrRecords.Add(record); foreach (DnsResourceRecord glueRecord in record.GetGlueRecords()) - { - if (!xfrRecords.Contains(glueRecord)) - xfrRecords.Add(glueRecord); - } + xfrRecords.Add(glueRecord); + break; default: - if (!xfrRecords.Contains(record)) - xfrRecords.Add(record); - + xfrRecords.Add(record); break; } }