Skip to content

[Not to land] Test AndroidDns implementation of Dns.Call#28

Draft
yschimke wants to merge 2 commits into
masterfrom
testing_android_dns
Draft

[Not to land] Test AndroidDns implementation of Dns.Call#28
yschimke wants to merge 2 commits into
masterfrom
testing_android_dns

Conversation

@yschimke

Copy link
Copy Markdown
Owner

This is 100% vibe coded, not to land. For discussion.

}

try {
dnsResolver.query(

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of dnsResolver.query we should use either

InetAddress.getAllByName()
or
Network.getAllByName()

Which sorts correctly and returns IPv4 and IPv6 together.

Use InetAddress.getAllByName (or Network.getAllByName when a network is
set) for A/AAAA resolution instead of DnsResolver query calls, run on a
TaskRunner thread. DnsResolver.rawQuery is still used for the HTTPS/ECH
record. Update the Robolectric tests accordingly.
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.

1 participant