Skip to content
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

DNS native host resolving no longer works with vz VMs since v1.0.0 #2939

Open
dhealio opened this issue Nov 22, 2024 · 2 comments
Open

DNS native host resolving no longer works with vz VMs since v1.0.0 #2939

dhealio opened this issue Nov 22, 2024 · 2 comments
Labels
bug Something isn't working component/dns component/vz regression Used to work but has been broken

Comments

@dhealio
Copy link

dhealio commented Nov 22, 2024

Description

When using the vz VM and not using user-v2 networking, the DNS behavior mentioned in the documentation is no longer working as advertised when hostResolver.enabled is true (or unassigned).

This prevents being able to use the native OS resolver, which is needed for VPN configurations, split-DNS setups, as well as mDNS, local /etc/hosts etc.

The breaking change seems to be here, which prevents args.UDPDNSLocalPort etc. from getting assigned.

@dhealio dhealio changed the title DNS hostResolver no longer works with vz VMs since v1.0.0 DNS native host resolving no longer works with vz VMs since v1.0.0 Nov 22, 2024
@nirs nirs added bug Something isn't working component/vz component/dns labels Nov 23, 2024
@dhealio
Copy link
Author

dhealio commented Nov 27, 2024

To be more specific, DNS resolving of VPN hostnames on macOS was working on v0.23.2 when starting lima with the default configuration/parameters, but no longer works with v1.0.0 or v1.0.1.

FWIW, I have also tried starting lima with user-v2 networking via limactl start --network=lima:user-v2, but I am still unable to resolve VPN hostnames within lima. This seems to contradict the behavior mentioned here, but perhaps I am doing something wrong.

If this is by design, then how would I go about configuring lima to allow DNS resolving of VPN hostnames? The documentation should be updated to reflect any changes of behavior in this regard.

Otherwise, this is a breaking change that I'm hoping can be addressed soon.

@nirs nirs added the regression Used to work but has been broken label Nov 28, 2024
@nirs
Copy link
Member

nirs commented Nov 28, 2024

Based on the comment this a regression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component/dns component/vz regression Used to work but has been broken
Projects
None yet
Development

No branches or pull requests

2 participants