summaryrefslogtreecommitdiffstats
path: root/README
blob: 205118d4ec1f1049c27881c3a1938235a46ee218 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
nss-myhostname is a GNU libc NSS module that statically translates the
local host name to the IP address 127.0.0.2 (which is on the loopback
device) and vice versa.

This is useful to make sure that the local host name is always
resolvable. Some programs (such as sudo) require this functionality. 

Especially on embedded systems it may not be desirable to modify
/etc/hosts to match the current host name. 

It is a good idea to put this module as last resort in
/etc/nsswitch.conf, to make sure that other name service take
precedence.

-- Lennart Poettering, lennart [at] poettering [dot] de

$Id$