Skip to content

fix(dns): translate invalid hostname IllegalArgumentException to UnknownHostException in lookup - #9837

Merged
yschimke merged 3 commits into
lysine-dev:mainfrom
zisam-glitch:fix/dns-invalid-hostname
Nov 14, 2026
Merged

yschimke merged 3 commits into
lysine-dev:mainfrom
zisam-glitch:fix/dns-invalid-hostname

Conversation

@zisam-glitch

Copy link
Copy Markdown
Contributor

Follow up to #9775 for #9796.

Translates IllegalArgumentException thrown during Dns.Request(hostname) instantiation inside AndroidDns.lookup(hostname) and DnsOverHttps.lookup(hostname) to UnknownHostException with cause preserved, matching the Dns.lookup() contract.

@yschimke
yschimke merged commit 25e213c into lysine-dev:main Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants