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

Property Value
Distribution Ubuntu 16.04 LTS (Xenial Xerus)
Repository Ubuntu Main amd64
Package filename libnss-myhostname_229-4ubuntu4_amd64.deb
Package name libnss-myhostname
Package version 229
Package release 4ubuntu4
Package architecture amd64
Package type deb
Category admin
License -
Maintainer Ubuntu Developers <>
Download size 39.26 KB
Installed size 155.00 KB
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.
Installing this package automatically adds myhostname to /etc/nsswitch.conf.


Package Version Architecture Repository
libnss-myhostname_229-4ubuntu4_i386.deb 229 i386 Ubuntu Main
libnss-myhostname_229-4ubuntu21.22_i386.deb 229 i386 Ubuntu Updates Main
libnss-myhostname_229-4ubuntu21.22_amd64.deb 229 amd64 Ubuntu Updates Main
libnss-myhostname - - -


Name Value
libc6 >= 2.16


Name Value
systemd << 222-1


Type URL
Binary Package libnss-myhostname_229-4ubuntu4_amd64.deb
Source Package systemd

Install Howto

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




2016-04-12 - Martin Pitt <>
systemd (229-4ubuntu4) xenial; urgency=medium
* 73-special-net-names.rules: Further refine ibmveth naming.
2016-04-12 - Martin Pitt <>
systemd (229-4ubuntu3) xenial; urgency=medium
* debian/tests/cmdline-upstart-boot: In test_rsyslog(), check for messages
from dbus instead of NetworkManager. NM 1.2 does not seem to log to syslog
by default any more.
* 73-special-net-names.rules: Refine ibmveth naming.
2016-04-12 - Martin Pitt <>
systemd (229-4ubuntu2) xenial; urgency=medium
* debian/tests/unit-config: Call "daemon-reload" to clean up generated units
in between tests.
* debian/tests/unit-config: Check that enable/disable commands are
* debian/tests/unit-config: Detect if system units are in /usr/, so that the
test works on systems with merged /usr.
* debian/tests/unit-config: Use systemd-sysv-install instead of update-rc.d
directly, so that the test works under Fedora too.
* debian/tests/unit-config: Check disabling of a "systemctl link"ed unit,
and check "systemctl enable" on a unit with full path which is not in the
standard directories.
* Rename debian/extra/rules/73-idrac.rules to 73-special-net-names.rules, as
it is going to get rules for other devices. Also install it into the
* debian/extra/rules/73-special-net-names.rules: Add DEVPATH number based
naming schema for ibmveth devices. (LP: #1561096)
devices with "change" events, as this causes spurious unmounting with
multipath devices. (LP: #1565969)
* Fix bogus "No [Install] section" warning when enabling a unit with full
path. (LP: #1563590)
2016-04-07 - Martin Pitt <>
systemd (229-4ubuntu1) xenial; urgency=medium
* Merge with Debian unstable. Remaining Ubuntu changes:
- Hack to support system-image read-only /etc, and modify files in
/etc/writable/ instead.
Upgrade fixes, keep until 16.04 LTS release:
- systemd Conflicts/Replaces/Provides systemd-services.
- Remove obsolete systemd-logind upstart job.
- Clean up obsolete /etc/udev/rules.d/README.
- systemd.postinst: Migrate mountall specific fstab options to standard
util-linux "nofail" option.
- systemctl: Don't forward telinit u to upstart. This works around
upstart's Restart() always reexec'ing /sbin/init on Restart(), even if
that changes to point to systemd during the upgrade. This avoids running
systemd during a dist-upgrade. (LP: #1430479)
- Provide shutdown fallback for upstart. (LP: #1370329)
- Break lvm (<< 2.02.133-1ubuntu1) and remove our dummy /etc/init.d/lvm2
on upgrades, as it's shipped by lvm2 now.
- Make udev break on mdadm << 3.3-2ubuntu3, as udev's init script dropped
the "Provides: raid-mdadm".
- Clean up /var/log/udev on upgrade (which is written under upstart, but
not under systemd). (LP: #1537211)
- Migrate existing s390x network configuration to new names. (LP: #1526808)
- systemd.postinst: Bump Version comparison for migrating the UTC setting
from /etc/default/rcS to /etc/adjtime, to run it for upgrades to 16.04.
- VMWare BIOS reports implausibly high onboard numbers. This got fixed in
upstream commit 6c1e69f9. Migrate names in ifupdown accordingly.
(LP: #1550539)
- udev: Don't kill peer processes if we don't run in a cgroup. This happens
when running under/upgrading from upstart. udevd and everything else run
in the root hierarchy on all controllers then, and the alleged cleanup of
"our" cgroup becomes a system-wide killing spree. (LP: #1555237)

See Also

Package Description
libnss-sss_1.13.4-1ubuntu1_amd64.deb Nss library for the System Security Services Daemon
libnss3-1d_3.21-1ubuntu4_amd64.deb Network Security Service libraries - transitional package
libnss3-dev_3.21-1ubuntu4_amd64.deb Development files for the Network Security Service libraries
libnss3-nssdb_3.21-1ubuntu4_all.deb Network Security Security libraries - shared databases
libnss3_3.21-1ubuntu4_amd64.deb Network Security Service libraries
libnuma-dev_2.0.11-1ubuntu1_amd64.deb Development files for libnuma
libnuma1_2.0.11-1ubuntu1_amd64.deb Libraries for controlling NUMA policy
libnunit-cil-dev_2.6.4+dfsg-1_all.deb Unit test framework for CLI - Development files
libnunit-console-runner2.6.3-cil_2.6.4+dfsg-1_all.deb Unit test framework for CLI - Assemblies
libnunit-core-interfaces2.6.3-cil_2.6.4+dfsg-1_all.deb Unit test framework for CLI - Assemblies
libnunit-core2.6.3-cil_2.6.4+dfsg-1_all.deb Unit test framework for CLI - Assemblies
libnunit-framework2.6.3-cil_2.6.4+dfsg-1_all.deb Unit test framework for CLI - Assemblies
libnunit-mocks2.6.3-cil_2.6.4+dfsg-1_all.deb Unit test framework for CLI - Assemblies
libnunit-util2.6.3-cil_2.6.4+dfsg-1_all.deb Unit test framework for CLI - Assemblies
libnux-4.0-0_4.0.8+16.04.20160209-0ubuntu2_amd64.deb Visual rendering toolkit for real-time applications - shared lib