Hi,

On Sat, 6 May 2017 20:57:44 +0200 Adam Borowski <kilob...@angband.pl> wrote:
> On Sat, May 06, 2017 at 08:00:11PM +0200, Michael Stapelberg wrote:
> > Thanks. It seems like getaddrinfo() is returning two results when resolving
> > localhost. Can you provide the contents of your hostname resolution-related
> > configuration please? I.e., /etc/hosts, /etc/resolv.conf,
> > /etc/nsswitch.conf, anything else you might have tweaked in that area.
> 
> nsswitch.conf: always default.
> 
> 
> amd64 (100% fails on all chroots):
> .--====[ /etc/hosts ]
> 127.0.0.1     localhost
> 127.0.1.1     umbar.angband.pl        umbar
> #lots of commented out stuff
> 
> # The following lines are desirable for IPv6 capable hosts
> ::1     localhost ip6-localhost ip6-loopback
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> +--====[ /etc/resolv.conf ]
> domain angband.pl
> search angband.pl
> nameserver 2001:6a0:118::3:2
> `----
> 
> armhf (100% fails on all chroots):
> .--====[ /etc/hosts ]
> 127.0.0.1     localhost
> ::1           localhost ip6-localhost ip6-loopback
> fe00::0               ip6-localnet
> ff00::0               ip6-mcastprefix
> ff02::1               ip6-allnodes
> ff02::2               ip6-allrouters
> 
> 127.0.0.1  kholdan    kholdan.angband.pl
> 2001:6a0:118::3:6     narchost
> #2001:6a0:118::3:3    apt.angband.pl
> +--====[ /etc/resolv.conf ]
> domain angband.pl
> search angband.pl
> nameserver 10.0.1.2
> `----
> 
> arm64 (100% ok on all chroots):
> .--====[ /etc/hosts ]
> 127.0.0.1     localhost
> 127.0.1.1     sirius.angband.pl sirius
> 
> # The following lines are desirable for IPv6 capable hosts
> ::1     localhost ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> +--====[ /etc/resolv.conf ]
> domain angband.pl
> nameserver 10.0.1.2
> nameserver 2001:6a0:118::3:2
> `----
> 

I've also spent time to reproduce this and despite my attempt to disable
localhost IPv6 resolution [0], i already encountered issues for echosrv
on ::1.

You can also try to replace any occurrence of `localhost` on t file by
127.0.0.1. If the testsuite cause trouble, i'll disable IPv6 completely
even on loopback (i didn't like the idea at first glance because want to
keep the testsuite as close as upstream ship it).

Then, any other special configurations in /etc/gai.conf ?

[0]:
https://anonscm.debian.org/cgit/collab-maint/sslh.git/tree/debian/patches/ftbfs_localhost.diff

-- 
Guillaume Delacour

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to