libnss-myhostname - nss module providing fallback resolution for the current hostname

Property Value
Distribution Debian 8 (Jessie)
Repository Debian Main amd64
Package name libnss-myhostname
Package version 0.3
Package release 9
Package architecture amd64
Package type deb
Installed size 26 B
Download size 13.37 KB
Official Mirror
This package contains a plugin for the Name Service Switch, providing host
name resolution for the locally configured system hostname as returned by
gethostname(2). It returns all locally configured public IP addresses or -- if
none are configured, the IPv4 address (which is on the local
loopback) and the IPv6 address ::1 (which is the local host).
A lot of software relies on that the local host name is resolvable. This
package provides an alternative to the fragile and error-prone manual editing
of /etc/hosts.


Package Version Architecture Repository
libnss-myhostname_0.3-9_i386.deb 0.3 i386 Debian Main
libnss-myhostname - - -


Name Value
libc6 >= 2.14
multiarch-support -


Type URL
Binary Package libnss-myhostname_0.3-9_amd64.deb
Source Package libnss-myhostname

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install libnss-myhostname deb package:
    # sudo apt-get install libnss-myhostname




2014-07-23 - Joachim Breitner <>
libnss-myhostname (0.3-9) unstable; urgency=medium
* s/172/127/g in patch names and comments.
2014-07-23 - Joachim Breitner <>
libnss-myhostname (0.3-8) unstable; urgency=medium
* Remove toc from README.html (Closes: #755788) 
2014-07-22 - Joachim Breitner <>
libnss-myhostname (0.3-7) unstable; urgency=medium
* Add autopkgtest to test hostname resolution without /etc/hosts, and also
test with nscd installed.
* Fix nscd compatibility (Closes: #755053), thank to Sam Morris for digging
up the patch, taking from the systemd repository.
2013-06-20 - Joachim Breitner <>
libnss-myhostname (0.3-6) unstable; urgency=low
* Fix duplicated ldconfig calls in maintainer scripts, thanks to Michael
Prokop for noticing. (Closes: #712802)
2013-05-21 - Joachim Breitner <>
libnss-myhostname (0.3-5) unstable; urgency=low
* Work around #705900: Ignore link-local addresses
2012-01-17 - Joachim Breitner <>
libnss-myhostname (0.3-4) unstable; urgency=low
* Fix Package's description to reflect changed behaviour. (Closes: #656218)
2011-06-28 - Joachim Breitner <>
libnss-myhostname (0.3-3) unstable; urgency=low
* Implement Multi-Arch support 
* 0004-Ensure-a-LANG-independent-generated-README.patch: 
Make sure the generated html file is independent of the current LANG
2011-06-17 - Joachim Breitner <>
libnss-myhostname (0.3-2) unstable; urgency=low
* Apply patch by Robert Millan, adding legacy support for BSD and hurd
kernels (Closes: #630206) 
* Use dh-autoreconf to take care of autoreconfing 
2011-06-10 - Joachim Breitner <>
libnss-myhostname (0.3-1) unstable; urgency=low
* Fix typo in package description (Closes: #624526)
* New upstream release (Closes: #630009)
* Bump standard version, no change
* Install myshostname directly after "files" in /etc/nsswitch.conf.
This avoids an annoying delay when dns fails and one wants to use sudo to
fix it. Is also closer to having the hostname in /etc/hosts, which is the
behaviour myhostname tries to mimic. Existing installations are not
2010-07-07 - Joachim Breitner <>
libnss-myhostname (0.2-5) unstable; urgency=low
* Bump standards version, no change
* Do not run dh_shlibps for .so files in /lib32 or /lib64, avoids dependency
on (e.g.) libc6-amd64 (Closes: #587918)

See Also

Package Description
libnss-pgsql2_1.4.0debian-8_amd64.deb NSS module for using PostgreSQL as a naming service
libnss-rainbow2_0.8.7-1_amd64.deb nss library for rainbow
libnss-securepass_0~20141025.0git2299135-1_amd64.deb NSS (Name Service Switch) module for Securepass
libnss-sss_1.11.7-3_amd64.deb Nss library for the System Security Services Daemon
libnss-winbind_4.2.14+dfsg-0+deb8u9_amd64.deb Samba nameservice integration plugins
libnss3-1d_3.26-1+debu8u3_amd64.deb Network Security Service libraries - transitional package
libnss3-dev_3.26-1+debu8u3_amd64.deb Development files for the Network Security Service libraries
libnss3-tools_3.26-1+debu8u3_amd64.deb Network Security Service tools
libnss3_3.26-1+debu8u3_amd64.deb Network Security Service libraries
libntdb-dev_1.0-5_amd64.deb New Trivial Database - development files
libntdb1_1.0-5_amd64.deb New Trivial Database - shared library
libntl-dev_6.2.1-1_amd64.deb Number Theory Library, development files
libntl5_6.2.1-1_amd64.deb Number Theory Library, shared library
libntlm0-dev_1.4-3_amd64.deb Development files for the NTLM authentication library
libntlm0_1.4-3_amd64.deb NTLM authentication library