I have a Debian Stretch system with both IPv4 and IPv6 addresses and default gateway. IPv4 and IPv6 addresses in the internet are reachable. When I start a ping to a domain which has an A and AAAA DNS record the system pings the IPv4 address from the A record. In the packet capture of the DNS request I can see that both A and AAAA are requested and answered. When I remove the IPv4 address from the system obviously everything works as expected....
How is the prioritization, I thought IPv6 will be preferred. If not, is there a option to change it?
A google search has not really helped me out because everyone asks to disable IPv6 and not want to use it...