-
Notifications
You must be signed in to change notification settings - Fork 304
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
[Mac] K3s DNS server #702
Comments
This is just configured via
Have you been testing this with RD 0.5.0, which was just released yesterday? The 0.4.1 release includes an older version of Lima that doesn't support DNS configuration. |
Good to know - this is where
I actually tested it with |
I don't know what you mean by
I thought this issue was only about macOS (the summary starts with So: if you are using RD 0.5.0 on macOS and set the |
Not exactly - RD does not give me an option to edit initial config and because changing
But
Correct, I was just trying to say that I tested it and similar issue does not exists for Windows. |
This is only true for systemd-based images. The Alpine image used by RD will process the network settings during each start, so I suspect the issue is still that coredns will forward the request to So if things work would still to some degree depend on luck, if coredns picks the right nameserver, or not. I'm wondering now if we should actually remove the qemu nameserver from the list whenever dns addresses are passed in explicitly, either from the |
While I'm not entirely sure how we'll solve this, I would like a solution in the 0.7 release. I don't think we have time prior to that but if we do it would be great to get it in early. |
You are right @jandubois - I just tested with |
I'm now researching a different approach for DNS in Lima: run a DNS server in a goroutine inside the hostagent and forward it to the VM. The host agent DNS would then look up type That way we should always get the name resolution from the host, so this would also deal with conditional forwards correctly by default. So any VPN changes would be visible right away without even restarting the VM. Inside the guest the only nameserver would be the one forwarded from the host; no alternates (similar to how systemd-resolved configures Still needs more research, but feels promising. |
Fixed in Lima, will be in next RD release. |
To note, this issue is marked done based on prior troubleshooting efforts but the new #770 picks up where we need to go next. |
This is dependent on #699, also see k3s-io/k3s#4087 for more context.
The use case is that people use VPN clients like AnyConnect that does Split DNS. I understand Rancher VM is different from default Lima Ubuntu VM, but in Ubuntu
dns
settings fromlima.yaml
ends up insystemd-resolved
. It can be fed to K3s at installation withurl -sfL https://get.k3s.io | sh -s - --resolv-conf /run/systemd/resolve/resolv.conf
.I am not sure what the mechanism Rancher VM is using for DNS - it is probably not
systemd-resolved
, but the point is - once #699 is solved - we need a way to pass DNS configuration down to thecoredns
somehow.This seems to be working out of the box in WSL2 - so it's only a Mac issue.
The text was updated successfully, but these errors were encountered: