@@ -63,7 +63,7 @@ added: v8.3.0
63
63
64
64
An independent resolver for DNS requests.
65
65
66
- Note that creating a new resolver uses the default server settings. Setting
66
+ Creating a new resolver uses the default server settings. Setting
67
67
the servers used for a resolver using
68
68
[ ` resolver.setServers() ` ] [ `dns.setServers()` ] does not affect
69
69
other resolvers:
@@ -212,7 +212,7 @@ of addresses supported by the current system. For example, IPv4 addresses
212
212
are only returned if the current system has at least one IPv4 address
213
213
configured. Loopback addresses are not considered.
214
214
- ` dns.V4MAPPED ` : If the IPv6 family was specified, but no IPv6 addresses were
215
- found, then return IPv4 mapped IPv6 addresses. Note that it is not supported
215
+ found, then return IPv4 mapped IPv6 addresses. It is not supported
216
216
on some operating systems (e.g FreeBSD 10.1).
217
217
218
218
## dns.lookupService(address, port, callback)
@@ -582,7 +582,7 @@ The [`dns.setServers()`][] method affects only [`dns.resolve()`][],
582
582
` dns.resolve*() ` and [ ` dns.reverse() ` ] [ ] (and specifically * not*
583
583
[ ` dns.lookup() ` ] [ ] ).
584
584
585
- Note that this method works much like
585
+ This method works much like
586
586
[ resolve.conf] ( http://man7.org/linux/man-pages/man5/resolv.conf.5.html ) .
587
587
That is, if attempting to resolve with the first server provided results in a
588
588
` NOTFOUND ` error, the ` resolve() ` method will * not* attempt to resolve with
@@ -604,7 +604,7 @@ added: v10.6.0
604
604
605
605
An independent resolver for DNS requests.
606
606
607
- Note that creating a new resolver uses the default server settings. Setting
607
+ Creating a new resolver uses the default server settings. Setting
608
608
the servers used for a resolver using
609
609
[ ` resolver.setServers() ` ] [ `dnsPromises.setServers()` ] does not affect
610
610
other resolvers:
@@ -1032,7 +1032,7 @@ An error will be thrown if an invalid address is provided.
1032
1032
The ` dnsPromises.setServers() ` method must not be called while a DNS query is in
1033
1033
progress.
1034
1034
1035
- Note that this method works much like
1035
+ This method works much like
1036
1036
[ resolve.conf] ( http://man7.org/linux/man-pages/man5/resolv.conf.5.html ) .
1037
1037
That is, if attempting to resolve with the first server provided results in a
1038
1038
` NOTFOUND ` error, the ` resolve() ` method will * not* attempt to resolve with
@@ -1083,16 +1083,16 @@ as most other programs. For instance, [`dns.lookup()`][] will almost always
1083
1083
resolve a given name the same way as the ` ping ` command. On most POSIX-like
1084
1084
operating systems, the behavior of the [ ` dns.lookup() ` ] [ ] function can be
1085
1085
modified by changing settings in nsswitch.conf(5) and/or resolv.conf(5),
1086
- but note that changing these files will change the behavior of _ all other
1087
- programs running on the same operating system _ .
1086
+ but changing these files will change the behavior of all other
1087
+ programs running on the same operating system .
1088
1088
1089
1089
Though the call to ` dns.lookup() ` will be asynchronous from JavaScript's
1090
1090
perspective, it is implemented as a synchronous call to getaddrinfo(3) that runs
1091
1091
on libuv's threadpool. This can have surprising negative performance
1092
1092
implications for some applications, see the [ ` UV_THREADPOOL_SIZE ` ] [ ]
1093
1093
documentation for more information.
1094
1094
1095
- Note that various networking APIs will call ` dns.lookup() ` internally to resolve
1095
+ Various networking APIs will call ` dns.lookup() ` internally to resolve
1096
1096
host names. If that is an issue, consider resolving the hostname to an address
1097
1097
using ` dns.resolve() ` and using the address instead of a host name. Also, some
1098
1098
networking APIs (such as [ ` socket.connect() ` ] [ ] and [ ` dgram.createSocket() ` ] [ ] )
0 commit comments