Skip to content

Conversation

@SPRESENSE
Copy link
Contributor

Summary

Fix bug that name resolution failed for a long time under particular cases. If a DNS query for IPv6 succeeds and IPv4 fails, only the answer of the IPv6 query is saved in the cache. If only IPv4 is given from LTE, name resolution will fail while the answer is saved in the cache. Therefore, the ALT1250 daemon sets the given IP type to the DNS client, which can only send DNS queries for that IP type.

Impact

Only alt1250 daemon.

Testing

Test with Spresense LTE board.

@SPRESENSE
Copy link
Contributor Author

This pull request has a dependency with the following pull request, please merge the nuttx side pull request first.
apache/nuttx#10622

Fix bug that name resolution failed for a long time under particular cases.
If a DNS query for IPv6 succeeds and IPv4 fails, only the answer of the
IPv6 query is saved in the cache. If only IPv4 is given from LTE,
name resolution will fail while the answer is saved in the cache.
Therefore, the ALT1250 daemon sets the given IP type to the DNS client,
which can only send DNS queries for that IP type.
@pkarashchenko
Copy link
Contributor

dns_set_queryfamily is missing. Most probably there is some dependency

@xiaoxiang781216
Copy link
Contributor

dns_set_queryfamily is missing. Most probably there is some dependency

it's here: apache/nuttx#10622

@xiaoxiang781216 xiaoxiang781216 merged commit a9a8fbb into apache:master Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants