[CentOS] /etc/gai.conf fails to prefer IPv4 over IPv6 for NFS

Mon Jun 11 15:55:06 UTC 2018
Steve Rikli <sr at genyosha.net>

In article <05fc7f7d-897a-8a6e-f91c-f79f8aefd9c7 at gmail.com>,
Gordon Messmer  <centos at centos.org> wrote:
>On 06/09/2018 07:51 AM, Steve Rikli wrote:
>> I had hopes for gai.conf as the more universal solution, but apparently
>> it's not useable here.
>gai.conf works as intended for most applications, here.  For example, if 
>I uncomment the block of "precedence" lines, and swap between "10" and 
>"100" for the last line, then "telnet www.google.com 80" will connect to 
>either the IPv4 or IPv6 address based on that value.  Have you verified 
>that works for you?  Do the results for that test not match the results 
>for NFS mounts?

That's correct -- to be clearer, gai.conf works as expected for other
things, but not what we wanted for the NFS automounter.