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

Hostname resolution capability #20

Open
459below opened this issue Aug 2, 2018 · 3 comments
Open

Hostname resolution capability #20

459below opened this issue Aug 2, 2018 · 3 comments

Comments

@459below
Copy link
Collaborator

459below commented Aug 2, 2018

It seems - oddly enough - to be a tad non-trivial to enable hostnames for resolving the keyserver in initramfs. Furthermore it seems to work just fine, if it's using DHCP. I'm probably overlooking something here.

In any case, I'd deem it a useful capability. A proper hostname should make the setup more durable. ATM if the IP of the keyserver is changed, the scripts and the initrd need to be modified. I think if we have a hostname (and it's referenced in the KnownHosts) we can move the keyserver around without breaking unlock capability on every system.

@fetzerms
Copy link
Owner

fetzerms commented Aug 2, 2018

What comes to my mind is:

  • Is /etc/resolv.conf available, if we're not using dhcp?
  • Does it work, if we create and/or fill it?
  • Do we need another hook/cp that copies it from the live system?
  • What, if the live system contains 127.0.0.1?

@459below
Copy link
Collaborator Author

459below commented Aug 2, 2018

This section should be applicable here:

https://wiki.gentoo.org/wiki/Custom_Initramfs#DNS

I haven't tried it yet, but it looks promising to me.

@fetzerms
Copy link
Owner

fetzerms commented Aug 2, 2018

Yes, I read this too. But it surprises me a little. Using DHCP, it seems to work fine. This does not sound like a library problem to me. But we should really dig into this. Maybe adjusting/supplying a proper resolv.conf already works.

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

No branches or pull requests

2 participants