NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.84k stars 13.92k forks source link

tinc service: host names from /etc/hosts don't work when chroot is used #23853

Open nh2 opened 7 years ago

nh2 commented 7 years ago

The nixos tinc service defines chroot = true as a default, but according to mailing list reply from the tinc author, host names from /etc/hosts (which especially nixops relies on) don't work by default in chroot because tinc can't see /etc/hosts.

The solution is to place a copy of /etc/hosts in the chroot dir when chroot = true is used.

nh2 commented 7 years ago

CC @wkennington @ericsagnes @fadenb @joachifm @tg-x as they committed to that service in the past and might be intrested.

wkennington commented 7 years ago

https://github.com/triton/triton/commit/da08fa64b3900a084a12744a94e3a552260d6bc9 if you create a patch similar to this it will work.

mmahut commented 5 years ago

Any news on this issue?

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
nh2 commented 4 years ago

still important to me

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

nh2 commented 3 years ago

still very important for me

Apparently normal DNS doesn't work either in chroots, e.g. it cannot resolve myhost.example.com.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info