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
feat: run DNS server inside namespace for localhost compatibility
Run the dummy DNS server inside the network namespace on 127.0.0.1:53
instead of on the host. This fixes DNS resolution on systems using
systemd-resolved (nameserver 127.0.0.53) while still working with
public DNS servers.
Changes:
- Update nftables DNAT to redirect DNS queries to 127.0.0.1:53
- Spawn DNS server inside namespace using `ip netns exec`
- Add --__internal-dns-server flag for the spawned process
- Bring up loopback interface before starting DNS server
This approach is simpler than PR #56's fork+exec machinery and works
universally across different Linux DNS configurations.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments