Prefer IPv4 over IPv6 on CentOS 6
To prefer IPv4 (A) addresses over IPv6 (AAAA) on CentOS 6 you need to add new file named /etc/gai.conf with following content. Last line is what controls if IPv4 or IPv6 should be tried first.
Parasta A-ryhmää, ei järjellä, ei taidolla, ei työllä, ei tuskalla vaan tuurilla!