From: John Darrington <john@darrington.wattle.id.au>
To: Ludovic Court??s <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: Neon and reverse address lookup
Date: Sat, 18 Jan 2014 22:49:08 +0100 [thread overview]
Message-ID: <20140118214908.GA31816@jocasta.intra> (raw)
In-Reply-To: <8738klou1c.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1285 bytes --]
I'm not sure if I'm reading your message as you intended, but for
the record, 127.0.0.1 should ALWAYS resolve to "localhost" - without
the domain name, and NOT to the canonical hostname.
If it does not, then a lot of things break.
J'
On Sat, Jan 18, 2014 at 10:32:31PM +0100, Ludovic Court??s wrote:
So /etc/hosts is not enough for reverse lookups to work.
With nscd turned off, I tried this:
guile -c '(pk (gethostbyaddr (inet-pton AF_INET "127.0.0.1")))'
If nsswitch.conf is removed, then that resolves to ???localhost??? (instead
of the actual host name.)
If, in addition, resolv.conf is removed, then that fails as seen above.
With nsswitch.conf alone, it resolves correctly (Mark was right.)
And this works with only ???hosts: files??? in nsswitch.conf.
It???s surprising that there???s this discrepancy between how NSS works for
getaddrinfo and for gethostbyaddr. At any rate, we may be able to solve
this at the libc level.
Thanks,
Ludo???.
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2014-01-18 21:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-18 12:48 Neon and reverse address lookup Andreas Enge
2014-01-18 14:17 ` John Darrington
2014-01-18 14:43 ` Mark H Weaver
2014-01-18 14:41 ` Mark H Weaver
2014-01-18 16:45 ` Andreas Enge
2014-01-18 16:48 ` John Darrington
2014-01-18 20:59 ` Ludovic Courtès
2014-01-18 20:09 ` Ludovic Courtès
2014-01-18 21:32 ` Ludovic Courtès
2014-01-18 21:49 ` John Darrington [this message]
2014-01-18 21:55 ` Mark H Weaver
2014-01-19 15:40 ` Ludovic Courtès
2014-02-05 17:30 ` Andreas Enge
2014-02-05 20:07 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140118214908.GA31816@jocasta.intra \
--to=john@darrington.wattle.id.au \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.