When I attempt resolve a name that is listed with both record types the OS returns the A record. A trace shows that the AAAA record is returned first followed by A but the application (Apache based HTTP GET, nslookup or dig) always returns the v4 address.
I running a dual stack, single NIC machine with Ubuntu 12.04.1 LTS. My network is v4 locally and v6 only to the Internet. My resolv.conf is configured with v6 (Google) nameservers only and my gai.conf had no non-comment/blank lines which should use the default order.
Based on other postings I've tried adding
options inet6 to
resolv.conf and these lines to
label ::1/128 0 label ::/0 1 label 2002::/16 2 label ::/96 3 label ::ffff:0:0/96 4 label fec0::/10 5 label fc00::/7 6 #label 2001:0::/32 7
Neither has changed the result. Anyone have any idea what is going on?