Mailinglist Archive: opensuse-factory (355 mails)

< Previous Next >
Re: [opensuse-factory] getent hosts localhost -> ::1
06.03.2020 21:19, Yamaban пишет:
On Fri, 6 Mar 2020 15:03, Michael Ströder <michael@...> wrote:


After upgrade to Tumbleweed 20200304 host name localhost insists on IPv6
address no matter what's in /etc/hosts:

# getent hosts localhost
::1             localhost

Relevant lines from /etc/hosts attached below.

How can I disable that without completely switching off IPv6?

Ciao, Michael.

The magic you are looking for happens in {/,/usr/}etc/gai.conf

No, it does not. getent hardcodes IPv6 address first - if IPv6 address
is found, it is returned.
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >