Comment 1 for bug 1015030

Revision history for this message
Thomas Hood (jdthood) wrote :

I see that nss-myhostname has been packaged for Debian as libnss-myhostname. It's in universe.

    $ apt-cache madison libnss-myhostname
    libnss-myhostname | 0.3-4 | http://nl.archive.ubuntu.com/ubuntu/ quantal/universe amd64 Packages

It has already been patched so that it returns 127.0.1.1 rather than 127.0.0.2.

I see also that in version 0.3, nss-myhostname was enhanced such that
* it returns an external IP address if the machine has one, falling back to 127.0.1.1 if it doesn't;
* and so, in nsswitch.conf on the "hosts:" line, 'myhostname' can be listed right after 'files' so that dns doesn't have to be tried first.

I forgot to mention that this report arose out of discussion at bug #234543 which also hearkens back to Debian bug report #267321. But these are far from the only discussions about this issue.