doc: indent ordered list child content
Markdownlint flags this with MD029 rule. Markdown renders will usually use list continuation number if it can. Explicitly adding it to the list item child scope makes it clearer. PR-URL: https://github.com/nodejs/node/pull/29332 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
parent
02f3dd24f3
commit
754d5a9375
@ -6,11 +6,12 @@
|
|||||||
|
|
||||||
The `dns` module contains functions belonging to two different categories:
|
The `dns` module contains functions belonging to two different categories:
|
||||||
|
|
||||||
1) Functions that use the underlying operating system facilities to perform
|
1. Functions that use the underlying operating system facilities to perform
|
||||||
name resolution, and that do not necessarily perform any network communication.
|
name resolution, and that do not necessarily perform any network
|
||||||
|
communication.
|
||||||
This category contains only one function: [`dns.lookup()`][]. **Developers
|
This category contains only one function: [`dns.lookup()`][]. **Developers
|
||||||
looking to perform name resolution in the same way that other applications on
|
looking to perform name resolution in the same way that other applications
|
||||||
the same operating system behave should use [`dns.lookup()`][].**
|
on the same operating system behave should use [`dns.lookup()`][].**
|
||||||
|
|
||||||
For example, looking up `iana.org`.
|
For example, looking up `iana.org`.
|
||||||
|
|
||||||
@ -23,16 +24,17 @@ dns.lookup('iana.org', (err, address, family) => {
|
|||||||
// address: "192.0.43.8" family: IPv4
|
// address: "192.0.43.8" family: IPv4
|
||||||
```
|
```
|
||||||
|
|
||||||
2) Functions that connect to an actual DNS server to perform name resolution,
|
2. Functions that connect to an actual DNS server to perform name resolution,
|
||||||
and that _always_ use the network to perform DNS queries. This category
|
and that _always_ use the network to perform DNS queries. This category
|
||||||
contains all functions in the `dns` module _except_ [`dns.lookup()`][]. These
|
contains all functions in the `dns` module _except_ [`dns.lookup()`][].
|
||||||
functions do not use the same set of configuration files used by
|
These functions do not use the same set of configuration files used by
|
||||||
[`dns.lookup()`][] (e.g. `/etc/hosts`). These functions should be used by
|
[`dns.lookup()`][] (e.g. `/etc/hosts`). These functions should be used by
|
||||||
developers who do not want to use the underlying operating system's facilities
|
developers who do not want to use the underlying operating system's
|
||||||
for name resolution, and instead want to _always_ perform DNS queries.
|
facilities for name resolution, and instead want to _always_ perform DNS
|
||||||
|
queries.
|
||||||
|
|
||||||
Below is an example that resolves `'archive.org'` then reverse resolves the IP
|
Below is an example that resolves `'archive.org'` then reverse resolves the
|
||||||
addresses that are returned.
|
IP addresses that are returned.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const dns = require('dns');
|
const dns = require('dns');
|
||||||
|
@ -36,9 +36,9 @@ cd tools/
|
|||||||
curl -O https://hg.mozilla.org/projects/nss/raw-file/NSS_3_41_RTM/lib/ckfw/builtins/certdata.txt
|
curl -O https://hg.mozilla.org/projects/nss/raw-file/NSS_3_41_RTM/lib/ckfw/builtins/certdata.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
The `_before` file will be used later. Verify that running `mk-ca-bundle` made
|
The `_before` file will be used later. Verify that running `mk-ca-bundle`
|
||||||
no changes to `src/node_root_certs.h`. If it did, something went wrong with the
|
made no changes to `src/node_root_certs.h`. If it did, something went wrong
|
||||||
previous update. Seek help!
|
with the previous update. Seek help!
|
||||||
|
|
||||||
Update metadata in the message below, and commit `certdata.txt`:
|
Update metadata in the message below, and commit `certdata.txt`:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user