This is a follow-up PR improving #1976 for edge-cases where upstream servers (can be local routers, especially in the context of conditional forwarding) are not capable to doing DNS over TCP. The PR changes the internal name resolver use UDP by default, but actively detect UDP DNS truncation (commonly seen in conjunction with DNSSEC) and appropriately fall back to TCP for corresponding queries.
Related issue or feature (if applicable): N/A
Pull request in docs with documentation (if applicable): N/A
By submitting this pull request, I confirm the following:
I have read and understood the contributors guide, as well as this entire template. I understand which branch to base my commits and Pull Requests against.
I have commented my proposed changes within the code.
I am willing to help maintain this change if there are issues with it later.
What does this implement/fix?
This is a follow-up PR improving #1976 for edge-cases where upstream servers (can be local routers, especially in the context of conditional forwarding) are not capable to doing DNS over TCP. The PR changes the internal name resolver use UDP by default, but actively detect UDP DNS truncation (commonly seen in conjunction with DNSSEC) and appropriately fall back to TCP for corresponding queries.
Related issue or feature (if applicable): N/A
Pull request in docs with documentation (if applicable): N/A
By submitting this pull request, I confirm the following:
git rebase
)Checklist:
developmental
branch.