Hi
I have recently built a trunk image. I ran into a problem with name resolution, it seems the system is setup to make AAAA requests before A requests.
to test run this
tcpdump -pni <your interface that dns queries go out of> port 53 &
ping -c 1 google.com
when I do this I see that a AAAA request is made first and then a A request >
I know how to do this on a debian box inet6 in resolv.conf. but I am not sure how to set up ipv4 over ipv6.
Can somebody please try this on their machine, 2.6 7.09
Thanks
====
Posted this to the wrong group, reposting in kamikaze....
====
I have done some checking out and uClibc has this statement from getaddrinfo.c, the records are tried in order
static struct gaih gaih[] =
{
#if __UCLIBC_HAS_IPV6__
{ PF_INET6, gaih_inet },
#endif
{ PF_INET, gaih_inet },
#if 0
{ PF_LOCAL, gaih_local },
#endif
{ PF_UNSPEC, NULL }
};
Note thay uclibc is built with __UCLIBC_HAS_IPV6__, this is the order that dns enquiries are made when no protocol is requested. make a ipv6 request first and then a ipv4 request. This is not the way a x86/linux(glibc) system would do it, the default is to do the ipv4 first and then the ipv6 - set by a flag usually in resolv.conf