From 2a2faea6377d3a6de304563e4113f1879b017121 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sun, 23 Jan 2022 17:06:59 +0530 Subject: [PATCH] ApexZone: removed WithTimeout() call for direct query. --- DnsServerCore/Dns/Zones/ApexZone.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/DnsServerCore/Dns/Zones/ApexZone.cs b/DnsServerCore/Dns/Zones/ApexZone.cs index 61b147ef..fef14b26 100644 --- a/DnsServerCore/Dns/Zones/ApexZone.cs +++ b/DnsServerCore/Dns/Zones/ApexZone.cs @@ -22,7 +22,6 @@ using System; using System.Collections.Generic; using System.Net; using System.Threading.Tasks; -using TechnitiumLibrary; using TechnitiumLibrary.Net.Dns; using TechnitiumLibrary.Net.Dns.ResourceRecords; @@ -122,7 +121,7 @@ namespace DnsServerCore.Dns.Zones { try { - DnsDatagram response = await dnsServer.DirectQueryAsync(new DnsQuestionRecord(nsDomain, DnsResourceRecordType.A, DnsClass.IN)).WithTimeout(2000); + DnsDatagram response = await dnsServer.DirectQueryAsync(new DnsQuestionRecord(nsDomain, DnsResourceRecordType.A, DnsClass.IN)); if (response.Answer.Count > 0) { IReadOnlyList addresses = DnsClient.ParseResponseA(response); @@ -137,7 +136,7 @@ namespace DnsServerCore.Dns.Zones { try { - DnsDatagram response = await dnsServer.DirectQueryAsync(new DnsQuestionRecord(nsDomain, DnsResourceRecordType.AAAA, DnsClass.IN)).WithTimeout(2000); + DnsDatagram response = await dnsServer.DirectQueryAsync(new DnsQuestionRecord(nsDomain, DnsResourceRecordType.AAAA, DnsClass.IN)); if (response.Answer.Count > 0) { IReadOnlyList addresses = DnsClient.ParseResponseAAAA(response);