-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to resolve DNS via host's resolver #92
Comments
At a first glance, the issue doesn't seem to be related to Orchard nor Tart, more to the macOS innerworkings of I'm afraid that more details are needed about the VPN solution used and it's configuration to at least reproduce your issue. Looking into tcpdump/Wireshark for the network interfaces in question may give some clues. Also, check out the cirruslabs/tart#473 (comment): when the VPN solution uses macOS APIs, Tart VMs can access the these VPN networks automatically, otherwise additional changes with A wild guess is that using |
I think you should be able to replicate this quickly using Cloudflare WARP (https://1.1.1.1/). |
Closing because there's nothing we can do to fix the problem on our side. |
Hi,
I hesitated in creating this issue here but due to the unique setup of the base image, this problem might be unique to orchard.
I'm trying to get VMs launched by orchard to be able to resolve DNS names via the host's own DNS resolver instead of the ones defined on the base image (
8.8.8.8
, etc). The reason for this requirement is that the host's DNS resolver is a special type of DNS server that is capable of resolving privately-resolved DNS entries (e.g.foo.bar.internal
) inside the VPN. Anything that it can't resolve it sends to an upstream internet-facing server.So the host has something like this under its
/etc/resolv.conf
:When a VM boots, I'm updating its DNS servers to the host IP (
192.168.64.1
vianetworksetup -setdnsservers Ethernet "Empty"
) using the startup launch script, but the VM is still unable to route traffic to the host's resolver.I've launched an HTTP server on the host on a high port and I've confirmed there is connectivity between the host and the VM, but any attempt at doing
nslookup google.com 192.168.64.1
times out.Another option I've tried is running
coredns
on the host bound to thebridge100
network interface only and the forwarding all traffic to the localhost server. This approach works but there is some fighting between coredns and the VPN DNS resolver which ultimately results in a crash.I suspect it's because the VPN DNS resolver is not listening on all interfaces (checked via
sudo lsof -i -P | grep LISTEN
), but ideally we could masquerade the VM NAT traffic to be able to reach the host's local DNS server.Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: