[dgram] only look up hostname for the requested address family
authorRasmus Andersson <rasmus@notion.se>
Mon, 9 Aug 2010 00:53:55 +0000 (02:53 +0200)
committerRyan Dahl <ry@tinyclouds.org>
Wed, 11 Aug 2010 00:53:32 +0000 (17:53 -0700)
commitfd3cd755d15e37fd20aaadf22a30fc84a5cb737f
tree69fe62ee64511fb8d5ccf15eb352391c94ccaf98
parent9395786d11b759bdefaa3ce0e6eb99582a5706fd
[dgram] only look up hostname for the requested address family

- [lib/dns.js] dns.lookup takes a new optional argument "family" which
  should be the integer 4, 6, dns.AF_INET or dns.AF_INET6. Passing a
  non-false "family" argument makes c-ares explicitly look up addresses for
  the specified family.

- [test/simple/test-c-ares.js] test explicit address family lookups
doc/api.markdown
lib/dgram.js
lib/dns.js