File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed 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
You can’t perform that action at this time.
0 commit comments