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

Using "--dns" only modifies /etc/resolv.conf on first time start (instance creation) - not modified afterwards #689

Open
1 task done
AndreasA opened this issue Apr 5, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@AndreasA
Copy link

AndreasA commented Apr 5, 2023

Description

I noticed that if the initial colima instance is created with --dns 8.8.8.8 --dns 8.8.4.4 or similar those entries are written into the /etc/resolv.conf file.

However, that file does not seem to change afterwards if --dns is supplied, so colima keeps using the initially provided DNS servers - without manual changes.

checked with colima ssh -- cat /etc/resolv.conf

using vm type vz with virtiofs.

Not 100% sure if this is the intended behavior. or if the file should not change at all etc.

Version

Colima Version: 0.5.4
Lima Version: 0.15.0
Qemu Version: 7.2.0

Operating System

  • macOS Intel >= 13 (Ventura)
@AndreasA AndreasA changed the title Using "--dns" on initial instance creation modifies /etc/resolv.conf file and it never resets Using "--dns" only modifies /etc/resolv.conf on first time start (instance creation) - not modified afterwards Apr 6, 2023
@abiosoft abiosoft added the bug Something isn't working label Apr 7, 2023
@abiosoft
Copy link
Owner

abiosoft commented Apr 7, 2023

Thanks for reporting this, definitely a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants