Re: Neon and reverse address lookup

2014-02-05 Thread Ludovic Courtès
Andreas Enge skribis: > On Sun, Jan 19, 2014 at 04:40:43PM +0100, Ludovic Courtès wrote: >> The issue is that the default config for the ‘hosts’ database when >> resolv.conf is missing is (see nss/hosts-lookup.c): >> dns [!UNAVAIL=return] files >> When doing a host name lookup, ‘dns’ is unavail

Re: Neon and reverse address lookup

2014-02-05 Thread Andreas Enge
On Sun, Jan 19, 2014 at 04:40:43PM +0100, Ludovic Courtès wrote: > The issue is that the default config for the ‘hosts’ database when > resolv.conf is missing is (see nss/hosts-lookup.c): > dns [!UNAVAIL=return] files > When doing a host name lookup, ‘dns’ is unavailable, so we go on with > ‘file

Re: Neon and reverse address lookup

2014-01-19 Thread Ludovic Courtès
Mark H Weaver skribis: > l...@gnu.org (Ludovic Courtès) writes: > >> 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

Re: Neon and reverse address lookup

2014-01-18 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > 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 actua

Re: Neon and reverse address lookup

2014-01-18 Thread John Darrington
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 wr

Re: Neon and reverse address lookup

2014-01-18 Thread Ludovic Courtès
Andreas Enge skribis: > when trying to package the neon library: >http://www.webdav.org/neon/ , > the tests fail inside the chroot with >addr_reverse (reverse lookup for 127.0.0.1 failed) I just tried this and it fails with “Host name lookup failure”: --8<---cut here

Re: Neon and reverse address lookup

2014-01-18 Thread Ludovic Courtès
John Darrington skribis: > On Sat, Jan 18, 2014 at 05:45:08PM +0100, Andreas Enge wrote: > On Sat, Jan 18, 2014 at 09:41:14AM -0500, Mark H Weaver wrote: > > I think we should include /etc/hosts in the chroot with an entry for > > localhost. We might also need /etc/nsswitch.conf;

Re: Neon and reverse address lookup

2014-01-18 Thread Ludovic Courtès
Mark H Weaver skribis: > Andreas Enge writes: > >> when trying to package the neon library: >>http://www.webdav.org/neon/ , >> the tests fail inside the chroot with >>addr_reverse (reverse lookup for 127.0.0.1 failed) >> >> Should I disable the corresponding test? > > I think we should i

Re: Neon and reverse address lookup

2014-01-18 Thread John Darrington
On Sat, Jan 18, 2014 at 05:45:08PM +0100, Andreas Enge wrote: On Sat, Jan 18, 2014 at 09:41:14AM -0500, Mark H Weaver wrote: > I think we should include /etc/hosts in the chroot with an entry for > localhost. We might also need /etc/nsswitch.conf; I'm not sure. I see > no reas

Re: Neon and reverse address lookup

2014-01-18 Thread Andreas Enge
On Sat, Jan 18, 2014 at 09:41:14AM -0500, Mark H Weaver wrote: > I think we should include /etc/hosts in the chroot with an entry for > localhost. We might also need /etc/nsswitch.conf; I'm not sure. I see > no reason not to do this, and I suspect it would ultimately take less > time and effort t

Re: Neon and reverse address lookup

2014-01-18 Thread Mark H Weaver
John Darrington writes: > On Sat, Jan 18, 2014 at 01:48:47PM +0100, Andreas Enge wrote: > Hi, > > when trying to package the neon library: > http://www.webdav.org/neon/ , > the tests fail inside the chroot with > addr_reverse (reverse lookup for 127.0.0.1 fail

Re: Neon and reverse address lookup

2014-01-18 Thread Mark H Weaver
Andreas Enge writes: > when trying to package the neon library: >http://www.webdav.org/neon/ , > the tests fail inside the chroot with >addr_reverse (reverse lookup for 127.0.0.1 failed) > > Should I disable the corresponding test? I think we should include /etc/hosts in the chroot with

Re: Neon and reverse address lookup

2014-01-18 Thread John Darrington
On Sat, Jan 18, 2014 at 01:48:47PM +0100, Andreas Enge wrote: Hi, when trying to package the neon library: http://www.webdav.org/neon/ , the tests fail inside the chroot with addr_reverse (reverse lookup for 127.0.0.1 failed) I thought that the lo interface sho

Neon and reverse address lookup

2014-01-18 Thread Andreas Enge
Hi, when trying to package the neon library: http://www.webdav.org/neon/ , the tests fail inside the chroot with addr_reverse (reverse lookup for 127.0.0.1 failed) Should I disable the corresponding test? Andreas