GeezerVison is showing github.com — doc: add link to DNS definition · nodejs/node@5d15dd3
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/dns.md +7-5Lines changed: 7 additions & 5 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
7 | 7 | The `dns` module enables name resolution. For example, use it to look up IP |
8 | 8 | addresses of host names. |
9 | 9 |
|
10 | | -Although named for the Domain Name System (DNS), it does not always use the DNS |
11 | | -protocol for lookups. [`dns.lookup()`][] uses the operating system facilities to |
12 | | -perform name resolution. It may not need to perform any network communication. |
13 | | -Developers looking to perform name resolution in the same way that other |
14 | | -applications on the same operating system behave should use [`dns.lookup()`][]. |
| 10 | +Although named for the [Domain Name System (DNS)][], it does not always use the |
| 11 | +DNS protocol for lookups. [`dns.lookup()`][] uses the operating system |
| 12 | +facilities to perform name resolution. It may not need to perform any network |
| 13 | +communication. Developers looking to perform name resolution in the same way |
| 14 | +that other applications on the same operating system behave should use |
| 15 | +[`dns.lookup()`][]. |
15 | 16 |
|
16 | 17 | ```js |
17 | 18 | const dns = require('dns'); |
@@ -1172,6 +1173,7 @@ uses. For instance, _they do not use the configuration from `/etc/hosts`_. |
1172 | 1173 | [`socket.connect()`]: net.html#net_socket_connect_options_connectlistener |
1173 | 1174 | [`util.promisify()`]: util.html#util_util_promisify_original |
1174 | 1175 | [DNS error codes]: #dns_error_codes |
| 1176 | +[Domain Name System (DNS)]: https://en.wikipedia.org/wiki/Domain_Name_System |
1175 | 1177 | [Implementation considerations section]: #dns_implementation_considerations |
1176 | 1178 | [RFC 8482]: https://tools.ietf.org/html/rfc8482 |
1177 | 1179 | [RFC 5952]: https://tools.ietf.org/html/rfc5952#section-6 |
|