kapetan / dns

A DNS library written in C#
MIT License
418 stars 127 forks source link

[Feature Request] `UdpRequestResolver` without any fallback #91

Open GF-Huang opened 2 years ago

GF-Huang commented 2 years ago

Sometime we don't need auto fallback in UDP query, just simple respond the Truncated response. Now, if we don't set the fallback, it will always throw an exception by NullRequestResolver.

https://github.com/kapetan/dns/blob/8094ac53131bfee743fc5d37bbdd6a54e94f8b1a/DNS/Client/RequestResolver/UdpRequestResolver.cs#L42-L44

https://github.com/kapetan/dns/blob/8094ac53131bfee743fc5d37bbdd6a54e94f8b1a/DNS/Client/RequestResolver/NullRequestResolver.cs#L6-L10