diff --git a/FastGithub.DomainResolve/DnsClient.cs b/FastGithub.DomainResolve/DnsClient.cs index 35f33bc..e34699e 100644 --- a/FastGithub.DomainResolve/DnsClient.cs +++ b/FastGithub.DomainResolve/DnsClient.cs @@ -130,6 +130,11 @@ namespace FastGithub.DomainResolve { return Array.Empty(); } + catch (SocketException ex) + { + this.logger.LogWarning($"{endPoint.Host}@{dns}:{ex.Message}"); + return this.dnsCache.Set(key, Array.Empty(), this.maxTimeToLive); + } catch (Exception ex) { this.logger.LogWarning($"{endPoint.Host}@{dns}:{ex.Message}");