Plugin for local system host name resolution
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
configured 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.
Note that nss-myhostname only provides a workaround for broken
software. If nss-myhostname is trigged by an application a message
is logged to /var/log/messages. Please check whether that's worth
a bug report then.
- Sources inherited from project openSUSE:12.2
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:lafenghu/nss-myhostname && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
0001-optionally-warn-if-nss-myhostname-is-called.d |
0000003291 3.21 KB | |
baselibs.conf | 0000000015 15 Bytes | |
nss-myhostname-0.3.tar.gz | 0000330031 322 KB | |
nss-myhostname-config | 0000000534 534 Bytes | |
nss-myhostname.changes | 0000000625 625 Bytes | |
nss-myhostname.rpmlintrc | 0000000093 93 Bytes | |
nss-myhostname.spec | 0000002972 2.9 KB |
Latest Revision
branched from openSUSE:Factory
Comments 0