diff options
author | Colin Ihrig <cjihrig@gmail.com> | 2016-04-01 16:59:09 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2016-04-01 17:03:42 -0400 |
commit | 39de601e1c3eda92eb2e37eca4e6aa960f206f39 (patch) | |
tree | da2f8f5507597dcceaac91fa94a72ec429310690 /doc | |
parent | d9391522309ce35eb469795f948feb8d217c9269 (diff) | |
download | android-node-v8-39de601e1c3eda92eb2e37eca4e6aa960f206f39.tar.gz android-node-v8-39de601e1c3eda92eb2e37eca4e6aa960f206f39.tar.bz2 android-node-v8-39de601e1c3eda92eb2e37eca4e6aa960f206f39.zip |
net: support DNS hints in createConnection()
This commit adds support for passing DNS lookup hints to
createConnection().
PR-URL: https://github.com/nodejs/node/pull/6000
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/net.markdown | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/api/net.markdown b/doc/api/net.markdown index 451b5f44ab..10129c13b8 100644 --- a/doc/api/net.markdown +++ b/doc/api/net.markdown @@ -375,6 +375,8 @@ For TCP sockets, `options` argument should be an object which specifies: - `family` : Version of IP stack. Defaults to `4`. + - `hints`: [`dns.lookup()` hints][]. Defaults to `0`. + - `lookup` : Custom lookup function. Defaults to `dns.lookup`. For local domain sockets, `options` argument should be an object which @@ -720,6 +722,7 @@ Returns true if input is a version 6 IP address, otherwise returns false. [`connect()`]: #net_socket_connect_options_connectlistener [`destroy()`]: #net_socket_destroy [`dns.lookup()`]: dns.html#dns_dns_lookup_hostname_options_callback +[`dns.lookup()` hints]: #dns_supported_getaddrinfo_flags [`end()`]: #net_socket_end_data_encoding [`EventEmitter`]: events.html#events_class_events_eventemitter [`net.Socket`]: #net_class_net_socket |