You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🐛 [Bug]: getaddrinfo fails while tethered when no Wi-Fi service is active (scutil DNS entry is Supplemental-only) #11
At the same time direct DNS works fine through the tunnel (nslookup example.com 8.8.8.8, dig example.com), so routing and the tunnel are fine — only the macOS system resolver is broken. Resolution works again as soon as Wi-Fi is associated with any network.
Environment
macOS 26.6.2 (Apple Silicon)
vivo X200 Pro Mini (MediaTek), USB tethering (RNDIS)
Because the entry is a Supplemental resolver (and the droidtether pseudo service never becomes the primary service), getaddrinfo does not use it for ordinary lookups. With Wi-Fi off there is no other active service resolver, so all lookups fail system-wide. When Wi-Fi is associated, the DNS servers configured on the Wi-Fi service resolve queries and mask the problem.
Possibly related: State:/Network/Global/IPv4 is overwritten without PrimaryService, and the pseudo service is not added to the service order, so the resolver never becomes primary.
Steps to reproduce
Connect the phone and enable USB tethering; keep Wi-Fi disconnected.
Wait for Network auto-configured! in /var/log/droidtether.log.
Associate Wi-Fi with any network -> resolution starts working immediately.
Current workaround
Keep a Wi-Fi association active (any network, even one without internet) — traffic keeps flowing through the tunnel. /etc/hosts entries also work but are brittle.
Suggested fix
Make the tunnel DNS a resolver macOS actually uses for default lookups, for example:
register the pseudo service as PrimaryService in State:/Network/Global/IPv4, or
create the resolver without relying on SupplementalMatchDomains,
and restore/remove Global/DNS and Global/IPv4 when the tunnel stops.
Activity