pop-os / desktop

Desktop metapackage
Other
27 stars 9 forks source link

feat: Include libnss-myhostname by default #128

Closed jacobgkau closed 11 months ago

jacobgkau commented 11 months ago

This allows removing /etc/hosts from the default configuration. Ref: https://github.com/pop-os/systemd/issues/5

While testing, I did find that systemd-resolved seems to resolve the hostname (along with localhost) even without libnss-myhostname installed: https://www.freedesktop.org/software/systemd/man/systemd-resolved.service.html#Synthetic%20Records

However, it still seems safer to include libnss-myhostname than not to, e.g. in case a different resolver with different behavior is installed. (Although the default nsswitch.conf configuration may still prefer DNS over this module, so maybe it's not actually useful?)

I wasn't entirely sure which metapackage this would fit best in, so I put it next to an existing libnss- package. Engineering feedback is welcome.