Skip to content

Commit 33d9cf5

Browse files
Trotttargos
authored andcommitted
doc: remove "note that" from dns.md
Refs: nodejs/remark-preset-lint-node#16 PR-URL: #28329 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent f3b4449 commit 33d9cf5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/api/dns.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ added: v8.3.0
6363

6464
An independent resolver for DNS requests.
6565

66-
Note that creating a new resolver uses the default server settings. Setting
66+
Creating a new resolver uses the default server settings. Setting
6767
the servers used for a resolver using
6868
[`resolver.setServers()`][`dns.setServers()`] does not affect
6969
other resolvers:
@@ -212,7 +212,7 @@ of addresses supported by the current system. For example, IPv4 addresses
212212
are only returned if the current system has at least one IPv4 address
213213
configured. Loopback addresses are not considered.
214214
- `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
216216
on some operating systems (e.g FreeBSD 10.1).
217217

218218
## dns.lookupService(address, port, callback)
@@ -582,7 +582,7 @@ The [`dns.setServers()`][] method affects only [`dns.resolve()`][],
582582
`dns.resolve*()` and [`dns.reverse()`][] (and specifically *not*
583583
[`dns.lookup()`][]).
584584

585-
Note that this method works much like
585+
This method works much like
586586
[resolve.conf](http://man7.org/linux/man-pages/man5/resolv.conf.5.html).
587587
That is, if attempting to resolve with the first server provided results in a
588588
`NOTFOUND` error, the `resolve()` method will *not* attempt to resolve with
@@ -604,7 +604,7 @@ added: v10.6.0
604604

605605
An independent resolver for DNS requests.
606606

607-
Note that creating a new resolver uses the default server settings. Setting
607+
Creating a new resolver uses the default server settings. Setting
608608
the servers used for a resolver using
609609
[`resolver.setServers()`][`dnsPromises.setServers()`] does not affect
610610
other resolvers:
@@ -1032,7 +1032,7 @@ An error will be thrown if an invalid address is provided.
10321032
The `dnsPromises.setServers()` method must not be called while a DNS query is in
10331033
progress.
10341034

1035-
Note that this method works much like
1035+
This method works much like
10361036
[resolve.conf](http://man7.org/linux/man-pages/man5/resolv.conf.5.html).
10371037
That is, if attempting to resolve with the first server provided results in a
10381038
`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
10831083
resolve a given name the same way as the `ping` command. On most POSIX-like
10841084
operating systems, the behavior of the [`dns.lookup()`][] function can be
10851085
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.
10881088

10891089
Though the call to `dns.lookup()` will be asynchronous from JavaScript's
10901090
perspective, it is implemented as a synchronous call to getaddrinfo(3) that runs
10911091
on libuv's threadpool. This can have surprising negative performance
10921092
implications for some applications, see the [`UV_THREADPOOL_SIZE`][]
10931093
documentation for more information.
10941094

1095-
Note that various networking APIs will call `dns.lookup()` internally to resolve
1095+
Various networking APIs will call `dns.lookup()` internally to resolve
10961096
host names. If that is an issue, consider resolving the hostname to an address
10971097
using `dns.resolve()` and using the address instead of a host name. Also, some
10981098
networking APIs (such as [`socket.connect()`][] and [`dgram.createSocket()`][])

0 commit comments

Comments
 (0)