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 }}
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.
DNS queries for local machine with VPNs that create virtual network interfaces with network packet filtering fail with NXDOMAIN responses. Such VPN setup has a common pattern:
The VPN client modifies the /etc/resolv.conf by adding users' default (local) gateway as a nameserver, for instance:
search legomushroom.github.com.hello.net hello.net service.reducted.hello.net lan
nameserver 192.168.86.1
They setup a linklocal virtual TUN network interface and set it as a default gateway in the routing table:
They setup network packet filters to filter out VPN-related traffic so it never reaches the real default gateway interface.
This setup fails for DNS resolvers that use the specified DNS server directly and do not perform getaddrinfo(3) sys call to resolve the address. Hence even common tools like dig, host or nslookup fail in this case.
Expected behavior
DNS queries work as expected.
Desktop:
OS: Mac OSx 12.3.1 Monterey
Intel chip
Known VPN clients affected:
Tailscale
Viscosity
Temporary Workarounds:
Either add ip hostname mapping to /etc/hosts inside Codespace:
DNS queries for local machine with VPNs that create virtual network interfaces with network packet filtering fail with
NXDOMAIN
responses. Such VPN setup has a common pattern:/etc/resolv.conf
by adding users' default (local) gateway as a nameserver, for instance:linklocal
virtual TUN network interface and set it as a default gateway in the routing table:This setup fails for DNS resolvers that use the specified DNS server directly and do not perform
getaddrinfo(3)
sys call to resolve the address. Hence even common tools likedig
,host
ornslookup
fail in this case.Expected behavior
DNS queries work as expected.
Desktop:
Known VPN clients affected:
Temporary Workarounds:
ip hostname
mapping to/etc/hosts
inside Codespace:nameserver
to the/etc/resolv.conf
(just after thenameserver 127.0.0.53
one):cc @chrisbloom7
The text was updated successfully, but these errors were encountered: