Closed Katulus closed 6 months ago
Sorry for the late reply, but I guess you figured it out in the meantime that this is most likely a network related problem with your own setup and has nothing todo with the client library or the DNS server. Hint: Local VPN services often block DNS traffic, but could be anything..
Hello, I hit a strange issue when certain TXT queries are timing out unless I enforce TCP.
Code that fails: Following code times out with:
DnsClient.DnsResponseException : Query 38620 => amazon.com IN TXT on 8.8.8.8:53 timed out or is a transient error. ---- System.OperationCanceledException : The operation was canceled.
Code that works: Following code works fine and returns proper result.
I tried with my local provider's DNS server as well as with Google 8.8.8.8 (in samples above) and both behave the same. If I try to query some record with less TXT records such as
outlook.com
it works even withoutUseTcpOnly = true
.amazon.com
has 22 TXT records.I would like to avoid
UseTcpOnly = true
because I'll be running lots of small DNS queries that will in 99% work perfectly fine over UDP.Any ideas what could be the issue here?