joyent/node — pull request #4169 by tomlanyon (2012-10-19 14:40:12+00:00)
Title: Implement dns.lookupAll() and use for net.connect()

In hope that this fixes 4168, this implements dns.lookupAll() to return all A/AAAA RRs for a hostname retrieved from getaddrinfo() and subsequently sets net.connect() to use this when connecting to remote hosts. This requires re-working of some of the other net connection code to retry with another host on failure and to setup a new TCP socket handle for each so hopefully it's all OK still.

This is my first node hacking; be gentle!