diff options
author | Rich Trott <rtrott@gmail.com> | 2020-06-20 07:10:50 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-06-22 20:08:14 +0300 |
commit | df144d2601d38b981242f47948fd6cc0921ebe51 (patch) | |
tree | f33a1cc0e27fa08a3a6938b0d9a6176d7cf15519 /doc/api/dns.md | |
parent | 8ef86a920cda7421a8d2c6ed7cdc991ac289f58c (diff) |
doc: revise text in dns module documentation introduction
PR-URL: https://github.com/nodejs/node/pull/33986
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'doc/api/dns.md')
-rw-r--r-- | doc/api/dns.md | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/doc/api/dns.md b/doc/api/dns.md index 20df48c5060..b02ee8b608d 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -10,9 +10,8 @@ addresses of host names. Although named for the [Domain Name System (DNS)][], it does not always use the DNS protocol for lookups. [`dns.lookup()`][] uses the operating system facilities to perform name resolution. It may not need to perform any network -communication. Developers looking to perform name resolution in the same way -that other applications on the same operating system behave should use -[`dns.lookup()`][]. +communication. To perform name resolution the way other applications on the same +system do, use [`dns.lookup()`][]. ```js const dns = require('dns'); @@ -26,9 +25,8 @@ dns.lookup('example.org', (err, address, family) => { All other functions in the `dns` module connect to an actual DNS server to perform name resolution. They will always use the network to perform DNS queries. 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 -developers who do not want to use the underlying operating system's -facilities for name resolution, and instead want to always perform DNS queries. +[`dns.lookup()`][] (e.g. `/etc/hosts`). Use these functions to always perform +DNS queries, bypassing other name-resolution facilities. ```js const dns = require('dns'); |