Skip to content

v2: Private DNS (DNS-over-TLS) in Tweaks#80

Merged
bryanroscoe merged 2 commits into
mainfrom
feat/v2-private-dns
Jun 15, 2026
Merged

v2: Private DNS (DNS-over-TLS) in Tweaks#80
bryanroscoe merged 2 commits into
mainfrom
feat/v2-private-dns

Conversation

@bryanroscoe

Copy link
Copy Markdown
Owner

Private DNS was added to v1 in #76 but never existed in v2. This ports it.

  • Tweaks tab: Off / Automatic / Custom hostname.
  • Safety revert (from v1): a custom DoT host that fails to resolve is probed (ping, 3 retries) and reverted to automatic, so a bad entry can't strand the device with no DNS.
  • Hostname validation is a pure, unit-tested function; the value is also shell-quoted on use.
  • Demo-mock fixture added so the Tweaks screen still renders offline.

Follow-up to #76. Reject malformed hostnames before interpolating into
the adb shell command (matches the custom-launcher input guard), drop a
stray review marker, and add Y to the shortcut legend.
Ports v1's Set-PrivateDns to v2 (added to v1 only in #76). Off /
Automatic / Custom hostname, with pure hostname validation and the
safety revert — a custom DoT host that fails to resolve falls back to
automatic so the device is never stranded without DNS.
@bryanroscoe bryanroscoe merged commit b1e1cc3 into main Jun 15, 2026
8 checks passed
@bryanroscoe bryanroscoe deleted the feat/v2-private-dns branch June 15, 2026 04:41
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