Keith Moore wrote: > > > Well, that is emphatically *NOT* what application developers > > > do. They do not just observe that it does not work, they try > > > to work around, e.g. routing messages to a different address, > > > at a different time, through a third party, or through a > > > different protocol. > > > > Indeed, correctly coded applications will use a getaddrinfo() > > and then a connect() in a loop until succesful. > > it's perfectly reasonable to connect to an address without first > doing a DNS lookup.
I think nobody can't help you if you are using hardcoded IP's. The only case you have an IP without DNS is when you get it passed from another layer/entity (eg in a FTP from the server). In any other way if you have multiple targets you can also try all of those in a loop similar to getaddrinfo(). > even when you need to do a DNS lookup, > getaddrinfo() doesn't always do what you need. Can you identify those so that getaddrinfo() can be expanded to fix these cases? Greets, Jeroen