Package: libnss-myhostname
Version: 220-5
Severity: important

libnss-myhostname not only resolves the configured hostname to local
IP addresses, but also 'gateway' to all the gateways.  As the postinst
inserts myhostname in /etc/nsswitch.conf ahead of dns, this overrides
DNS reverse name lookup for the gateway.

I just discovered this because it broke the SSH remote host filtering
on one computer - the computer allowed to connect to it is also the
gateway router, but it is now seen as 'gateway' and not the name it
has in DNS.

The manual page states clearly that this module should be used after
dns; please follow this advice and put it last on the hosts line.

(This was also mentioned in #756224 but there it is claimed that using
myhostname in any position causes breakage.  For me that's not the
case.)

Ben.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 4.0.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libnss-myhostname depends on:
ii  libc6    2.19-18
ii  libcap2  1:2.24-9
ii  libgcc1  1:5.1.1-9

libnss-myhostname recommends no packages.

libnss-myhostname suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to