Bug 2768

Summary: systemd should require nss-myhostname
Product: Mageia Reporter: Dick Gevers <dvgevers>
Component: RPM PackagesAssignee: D Morgan <dmorganec>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: systemd-35-3.mga2 CVE:
Status comment:

Description Dick Gevers 2011-09-18 14:18:05 CEST
Description of problem:

Using systemd this warning is shown in /var/log/warnings:

Sep 16 18:12:43 dvg systemd-hostnamed[21523]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!

Also see this reference please:
http://0pointer.de/lennart/projects/nss-myhostname/

reading inter alia:
nss-myhostname is a plugin for the GNU Name Service Switch (NSS) functionality of the GNU C Library (glibc) providing host name resolution for the locally configured system hostname as returned by gethostname(2). Various software relies on an always resolvable local host name. When using dynamic hostnames this is usually achieved by patching /etc/hosts at the same time as changing the host name. This however is not ideal since it requires a writable /etc file system and is fragile because the file might be edited by the administrator at the same time. nss-myhostname simply returns all locally configure public IP addresses, or -- if none are configured -- the IPv4 address 127.0.0.2 (wich is on the local loopback) and the IPv6 address ::1 (which is the local host) for whatever system hostname is configured locally. Patching /etc/hosts is thus no longer necessary.

There are already packages for Fedora and Suse. This may also be considered to be a new package request (but with a require also from the systemd package).
Manuel Hiebel 2011-09-19 00:15:11 CEST

Assignee: bugsquad => dmorganec

Comment 1 Dick Gevers 2011-09-24 18:19:56 CEST
Thanks dmorgan for package nss-myhostname: warning is gone now.

All that remains is a require in the systemd package.
Comment 2 Dick Gevers 2011-09-28 21:58:55 CEST
Fixed today.

Status: NEW => RESOLVED
Resolution: (none) => FIXED