[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getaddrinfo address ordering



[ post by non-subscriber.  with the massive amount of spam, it is easy to
  miss and therefore delete mis-posts.  so fix subscription addresses! ]

In article <Pine.LNX.4.44.0211271823380.1181-100000@netcore.fi> (at Wed, 27 Nov 2002 18:31:46 +0200 (EET)), Pekka Savola <pekkas@netcore.fi> says:

> > It will currently always fall back to v4 if one wrote it correctly:
> >  - tries AAAA (if dns returned it)
> >  - tries A (if dns returned it)
> 
> Sure.. but in this case www.google.com will not have AAAA records in,
> well, about 5-10 years.  They have no incentive to do so, _at all_ --
> quite the contrary -- as their v4-enabled users would get worse service.

This problem is NOT only ipv6 and/or getaddrinfo thing at all.
If one of IPv4 address on a DNS for a single FQDN were down, 
what would be happened?

(You might have recognized similar problem with h_addr_list[] in 
struct hostent{} :-))

What should be to blame is poor programming of application.

-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA