[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getaddrinfo address ordering
On Thu, Nov 28, 2002 at 02:37:40AM +0900, YOSHIFUJI Hideaki / ?$B5HF#1QL@?(B wrote:
> 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.
I think applications should try all addresses returned if necessary
to make a tcp connection. This solves the problem of unreachability
(except that it might take a while to establish a connection), but
you still have a problem that the IPv6 path might be poor.
Stig