Mailinglist Archive: opensuse-factory (355 mails)

< Previous Next >
Re: [opensuse-factory] Re: getent hosts localhost -> ::1
On Mon, Mar 9, 2020 at 6:29 AM Michael Ströder <michael@xxxxxxxxxxxx> wrote:
getent hosts uses gethostbyname, which is an obsolete interface. You
should use getent ahosts instead.

Hmm, even more confusing (but thanks for the hint)...

Yes, it will get worse if you dig further.

Replacing it with using the IPv4 address works:

ldap-server "";

I think the issue was caused by the unbound update. The DNS recursor is
now returning IPv4 and IPv6 addresses for localhost:

So you are hitting another issue.. queries of name localhost shouldn't
even go there in the first place..they shouldn't leak anywhere..should
not be asked to the network..
unfortunately nothing mandates this behaviour *yet*.

$ host localhost.
localhost has address
localhost has IPv6 address ::1

great. the resolver should return NXDOMAIN for google does..

drill localhost@
;; ->>HEADER<<- opcode: QUERY, rcode: NXDOMAIN, id: 6257...

however this is an issue in debate.

In theory ISC dhcpd should have been able to connect to ldap://::1 but
it did not work.

I have to dig a bit deeper...

is ldap even listening on ipv6 in the first place ?
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >