Fix Compress UDP DNS response instead of truncate #1442
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
在 17aebc5 修复UDP DNS响应体过长导致无法解析的问题后,出现 api.aliyundrive.com 因截取导致 ip 信息丢失的问题,经抓包分析发现可以使用压缩选项来解决这两类域名问题
# 1.8.5 nslookup api.aliyundrive.com 192.168.2.179:1053 Server: 192.168.2.179:1053 Address: 192.168.2.179:1053 Non-authoritative answer: Non-authoritative answer: api.aliyundrive.com canonical name = beijing.tfe.alibaba-clould.alibabacorp.com beijing.tfe.alibaba-clould.alibabacorp.com canonical name = beijing.tfe.alibaba-clould.alibabacorp.com.gds.alibabadns.com beijing.tfe.alibaba-clould.alibabacorp.com.gds.alibabadns.com canonical name = bj-static.tfe.alibaba-clould.alibabacorp.com bj-static.tfe.alibaba-clould.alibabacorp.com canonical name = bj-static.tfe.alibaba-clould.alibabacorp.com.gds.alibabadns.com
第三方上游DNS服务器返回压缩DNS响应体
经sing-box DNS服务器返回未压缩DNS响应体