Comment 89 for bug 417757

This has nothing todo with network-manager or linux kernel. And not even libc as dig doesn't use libc functions to resolve names.

I think that this can be worked around with tweaking /etc/gai.conf or by blacklisting the ipv6 kernel module