On Thu, 29 Jan 2009, Daniel Stenberg wrote:
> So I wrote up a patch for c-ares that makes ares_gethostbyname() accept
> AF_UNSPEC as family. It will then accept ipv4 _or_ ipv6 names in files. I
> call it "less bad" in the subject since it still does type A resolves then
> without resorting to trying AAAA ones when this is specified.
Ok, so I made it do AAAA first with AF_UNSPEC and do the "usual" fallback to A
records so it should now work pretty smoothly I think. The change was
committed just now, so feel free to test this on your funny AAAA and A host
names to see what it behaves in real life. My own networks are unfortunately
far too AAAA-free...
-- / daniel.haxx.seReceived on 2009-01-31