From e8a7a315391a6a07897122725cd707f4e9ce63d7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 24 Apr 2013 17:18:01 -0300 Subject: nss-myhostname: resolve 'localhost' so that /etc/hosts becomes optional This makes sure nss-myhostname not only resolves the local host name to 127.0.0.2/::1 but also the host name 'localhost: to 127.0.0.1/::1. This makes installation of /etc/passwd optional, as it usually only includes a mapping for 'localhost'. This change also resolves ::1 to the local hostname (as before), but also lists 'localhost' as an alias. This means look-ups are now fully reversible, even though they are 1:n mappings. Finally, the module will no longer erroneously claim that local IP addresses which aren't on the loopback device were. --- TODO | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index 9a23ab5eb6..88a3b2cb45 100644 --- a/TODO +++ b/TODO @@ -26,6 +26,10 @@ Fedora 19: Features: +* nss-myhostname: investigate whether there's any point in also + resolving localhost6, localhost.localdomain, ip6-localhost or any of + the other names often seen in /etc/hosts + * see if we can fix https://bugs.freedesktop.org/show_bug.cgi?id=63672 without dropping the location cache entirely. @@ -47,14 +51,10 @@ Features: * timedatctl, localectl: possibly make some commands work without the daemon, for chroot situations... -* logind: consider making suspend inhibitor locks non-session specific, but keep suspend-key inhibitor locks session specific - * logind: add Suspend() bus calls which take timestamps to fix double suspend issues when somebody hits suspend and closes laptop quickly. * we need dynamic units -* nss-myhostname should also resolve 'localhost' so that /etc/hosts becomes optional. - * add s.th. like "systemctl set-log-level debug" * sd-login: allow enumerating machines and add inotify iface -- cgit v1.2.3-54-g00ecf