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

Skip using resolvconf (more dhcp/dns fixes) #53

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

WhatAmISupposedToPutHere
Copy link
Collaborator

On systems with systemd-resolved installed, dhcpcd tries to use resolvconf to configure the dns server. Naturally this fails, as we do not have systemd &co inside the vm.

On systems with systemd-resolved installed, dhcpcd tries
to use resolvconf to configure the dns server. Naturally this
fails, as we do not have systemd &co inside the vm.

Signed-off-by: Sasha Finkelstein <[email protected]>
@n3ph
Copy link

n3ph commented Sep 17, 2024

In my tests this only works if the DNS resolver I got via DHCP is an public/external one. In case it's my networks gateway I am connected to, I see no DNS requests leaving my hosts interface.

@WhatAmISupposedToPutHere
Copy link
Collaborator Author

Yes, that is true, but that is a separate bug, passt directs the requests to the default gateway to the host machine instead which seems to not be running a dns server in your case. (you might be able to fix this by enabling (not just installing) systemd-resolved)

@n3ph
Copy link

n3ph commented Sep 17, 2024

I think systemd-resolved is configured and running properly. It seems passt forwards the requests to udp:127.0.0.1:53, but turns out the stub resolver listens to 127.0.0.53 and 127.0.0.54.

I temporarily fixed it by adding an additional listener in /etc/systemd/resolved.conf:

[Resolve]
DNSStubListenerExtra=udp:127.0.0.1:53 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants