Ask Your Question
1

How do I prioritize ipv4 over ipv6?

asked 2017-03-21 03:34:39 -0500

lohroc gravatar image

I was able to do this on ubuntu by editing /etc/gai.conf but couldn't find that file on Fedora.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
1

answered 2017-03-21 09:53:43 -0500

hhlp gravatar image

this configuration file is provided by this packages glibc :

rpm -qf /etc/gai.conf
glibc-2.24-4.fc25.x86_64

And if you do not have a /etc/gai.conf (for instance on recent Fedora), you should have an example somewhere within /usr/share/doc/glibc-common/gai.conf) which you can copy over to /etc/gai.conf.

Regards.,

edit flag offensive delete link more
0

answered 2017-03-21 08:27:59 -0500

Rabin gravatar image

I think you can copy the file from Ubuntu/Debian and use it on Fedora as well.

# man gai.conf

GAI.CONF(5)

NAME
       gai.conf - getaddrinfo(3) configuration file

DESCRIPTION
       A  call  to getaddrinfo(3) might return multiple answers.  According to RFC 3484 these answers must be sorted so that the answer with the highest success rate is first in the list.  The RFC provides an algorithm for the
       sorting.  The static rules are not always adequate, though.  For this reason, the RFC also requires that system administrators should have the possibility to dynamically change the sorting.  For  the  glibc  implementa‐
       tion, this can be achieved with the /etc/gai.conf file.
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-03-21 03:34:39 -0500

Seen: 824 times

Last updated: Mar 21 '17