@@ -144,7 +144,7 @@ The resolver instance will send its requests from the specified IP address.
144
144
This allows programs to specify outbound interfaces when used on multi-homed
145
145
systems.
146
146
147
- If a v4 or v6 address is not specified, it is set to the default, and the
147
+ If a v4 or v6 address is not specified, it is set to the default and the
148
148
operating system will choose a local address automatically.
149
149
150
150
The resolver will use the v4 local address when making requests to IPv4 DNS
@@ -239,7 +239,7 @@ such as no available file descriptors.
239
239
240
240
` dns.lookup() ` does not necessarily have anything to do with the DNS protocol.
241
241
The implementation uses an operating system facility that can associate names
242
- with addresses, and vice versa. This implementation can have subtle but
242
+ with addresses and vice versa. This implementation can have subtle but
243
243
important consequences on the behavior of any Node.js program. Please take some
244
244
time to consult the [ Implementation considerations section] [ ] before using
245
245
` dns.lookup() ` .
@@ -285,7 +285,7 @@ The following flags can be passed as hints to [`dns.lookup()`][].
285
285
returned if the current system has at least one IPv4 address configured.
286
286
* ` dns.V4MAPPED ` : If the IPv6 family was specified, but no IPv6 addresses were
287
287
found, then return IPv4 mapped IPv6 addresses. It is not supported
288
- on some operating systems (e.g FreeBSD 10.1).
288
+ on some operating systems (e.g. FreeBSD 10.1).
289
289
* ` dns.ALL ` : If ` dns.V4MAPPED ` is specified, return resolved IPv6 addresses as
290
290
well as IPv4 mapped IPv6 addresses.
291
291
@@ -387,7 +387,7 @@ changes:
387
387
388
388
* ` hostname ` {string} Host name to resolve.
389
389
* ` options ` {Object}
390
- * ` ttl ` {boolean} Retrieve the Time-To-Live value (TTL) of each record.
390
+ * ` ttl ` {boolean} Retrieves the Time-To-Live value (TTL) of each record.
391
391
When ` true ` , the callback receives an array of
392
392
` { address: '1.2.3.4', ttl: 60 } ` objects rather than an array of strings,
393
393
with the TTL expressed in seconds.
@@ -426,7 +426,7 @@ changes:
426
426
* ` err ` {Error}
427
427
* ` addresses ` {string\[ ] | Object\[ ] }
428
428
429
- Uses the DNS protocol to resolve a IPv6 addresses (` AAAA ` records) for the
429
+ Uses the DNS protocol to resolve IPv6 addresses (` AAAA ` records) for the
430
430
` hostname ` . The ` addresses ` argument passed to the ` callback ` function
431
431
will contain an array of IPv6 addresses.
432
432
@@ -575,7 +575,7 @@ changes:
575
575
* ` err ` {Error}
576
576
* ` addresses ` {Object\[ ] }
577
577
578
- Uses the DNS protocol to resolve regular expression based records (` NAPTR `
578
+ Uses the DNS protocol to resolve regular expression- based records (` NAPTR `
579
579
records) for the ` hostname ` . The ` addresses ` argument passed to the ` callback `
580
580
function will contain an array of objects with the following properties:
581
581
@@ -901,7 +901,7 @@ added:
901
901
-->
902
902
903
903
Cancel all outstanding DNS queries made by this resolver. The corresponding
904
- promises will be rejected with an error with code ` ECANCELLED ` .
904
+ promises will be rejected with an error with the code ` ECANCELLED ` .
905
905
906
906
### ` dnsPromises.getServers() `
907
907
@@ -965,7 +965,7 @@ such as no available file descriptors.
965
965
966
966
[ ` dnsPromises.lookup() ` ] [ ] does not necessarily have anything to do with the DNS
967
967
protocol. The implementation uses an operating system facility that can
968
- associate names with addresses, and vice versa. This implementation can have
968
+ associate names with addresses and vice versa. This implementation can have
969
969
subtle but important consequences on the behavior of any Node.js program. Please
970
970
take some time to consult the [ Implementation considerations section] [ ] before
971
971
using ` dnsPromises.lookup() ` .
@@ -1182,7 +1182,7 @@ added: v10.6.0
1182
1182
1183
1183
* ` hostname ` {string}
1184
1184
1185
- Uses the DNS protocol to resolve regular expression based records (` NAPTR `
1185
+ Uses the DNS protocol to resolve regular expression- based records (` NAPTR `
1186
1186
records) for the ` hostname ` . On success, the ` Promise ` is resolved with an array
1187
1187
of objects with the following properties:
1188
1188
@@ -1380,11 +1380,11 @@ earlier ones time out or result in some other error.
1380
1380
1381
1381
Each DNS query can return one of the following error codes:
1382
1382
1383
- * ` dns.NODATA ` : DNS server returned answer with no data.
1383
+ * ` dns.NODATA ` : DNS server returned an answer with no data.
1384
1384
* ` dns.FORMERR ` : DNS server claims query was misformatted.
1385
1385
* ` dns.SERVFAIL ` : DNS server returned general failure.
1386
1386
* ` dns.NOTFOUND ` : Domain name not found.
1387
- * ` dns.NOTIMP ` : DNS server does not implement requested operation.
1387
+ * ` dns.NOTIMP ` : DNS server does not implement the requested operation.
1388
1388
* ` dns.REFUSED ` : DNS server refused query.
1389
1389
* ` dns.BADQUERY ` : Misformatted DNS query.
1390
1390
* ` dns.BADNAME ` : Misformatted host name.
@@ -1405,7 +1405,7 @@ Each DNS query can return one of the following error codes:
1405
1405
* ` dns.ADDRGETNETWORKPARAMS ` : Could not find ` GetNetworkParams ` function.
1406
1406
* ` dns.CANCELLED ` : DNS query cancelled.
1407
1407
1408
- The above error codes are also exported by the ` dnsPromises ` API , e.g., ` dnsPromises.NODATA ` .
1408
+ The ` dnsPromises ` API also exports the above error codes , e.g., ` dnsPromises.NODATA ` .
1409
1409
1410
1410
## Implementation considerations
1411
1411
@@ -1441,7 +1441,7 @@ allow the default resolver, `dns.lookup()`, to be replaced.
1441
1441
1442
1442
These functions are implemented quite differently than [ ` dns.lookup() ` ] [ ] . They
1443
1443
do not use getaddrinfo(3) and they _ always_ perform a DNS query on the
1444
- network. This network communication is always done asynchronously, and does not
1444
+ network. This network communication is always done asynchronously and does not
1445
1445
use libuv's threadpool.
1446
1446
1447
1447
As a result, these functions cannot have the same negative impact on other
0 commit comments