Make DNS Match Domains configurable in the macOS and iOS/iPadOS clients #4146
hilsonp
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
The Apple clients already pass
dnsMatchDomains(CLI--match-domains) to the tunnel, but no UI exposes it. On macOS it can only be set by hand-editing~/Library/Application Support/Pangolin/pangolin.json. On iOS/iPadOS there is no supported way at all.Motivation
Split DNS is the common case: send
*.internal.example.comto a homelab or corporate DNS over the tunnel and leave all other lookups on the local resolver, so public DNS stays fast. The docs describe this exact case (https://docs.pangolin.net/manage/clients/dns#match-domains). Hand-editing JSON is error-prone and is overwritten by settings changes. On iOS/iPadOS users cannot configure it at all.Proposed Solution
Add a "Match Domains" field to the DNS preferences on macOS and iOS/iPadOS: a list of wildcard patterns (
*,?, case-insensitive), with empty meaning all domains, persisted todnsMatchDomains. Validate patterns and show a note that aliases and private HTTP hostnames must match a pattern to resolve.Alternatives Considered
Hand-editing
pangolin.json(macOS only, and overwritten by UI saves). No workaround exists on iOS/iPadOS.Additional Context
Code references (fosrl/apple):
Pangolin/Shared/ConfigManager.swift(getter/setter),Pangolin/Shared/Model/Models.swift(dnsMatchDomains),Pangolin/Shared/TunnelManager.swift(~line 758),PacketTunnel/Shared/TunnelAdapter.swift(line 284),PangolinGo/main.go(line 41). Related: fosrl/apple#4 (per-domain upstream DNS). Android counterpart: discussion #3798.All reactions