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

Modifying /etc/hosts causing issues #607

Open
purepani opened this issue Oct 13, 2023 · 7 comments
Open

Modifying /etc/hosts causing issues #607

purepani opened this issue Oct 13, 2023 · 7 comments

Comments

@purepani
Copy link

I am a NixOS user, and one of the changes NixOS makes is that /etc/hosts is symlinked from the nix store, which is read only.
The issue this causes is when using the DNS integration, since /etc/hosts can't be modified, nothing is populated into there.

I was also thinking this might cause other conflicts with other programs that might also try to modify /etc/hosts. Is there a way to work around this, or would that require integrating a different solution for dns resolution into netclient?

@mattkasun
Copy link
Contributor

there is no workaround

@purepani
Copy link
Author

Thanks,
I'll try and look harder for a solution on the Nixos side

@wexder
Copy link

wexder commented Nov 27, 2023

@purepani I don't think there is solution on Nixos side. The security/file model doesn't allow write access to host file.
@mattkasun Are there any plans to integrate DNS management system instead of modifying /etc/hosts ?

@mattkasun
Copy link
Contributor

No plans that I am aware of

@wexder
Copy link

wexder commented Dec 9, 2023

@mattkasun so there's no chance of running netclient with dns integration on distributions like Nixos ?

@mattkasun
Copy link
Contributor

Not with current implementation

@gigadjo
Copy link

gigadjo commented Jan 5, 2024

One could still run a little DNS server, inside a VM, or even next to NM, that responds for whatever you want :-)
It would involve adding every host to this DNS, then pointing your clients to this DNS.

Dnsmasq is quite simple, and yet very powerfull :-)

Regards,

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

No branches or pull requests

4 participants