| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bbb5707 commit 5c522dd
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -162,7 +162,7 @@ changes: | |||
| 162 | 162 | the address is not an IPv4 or IPv6 address. `0` is a likely indicator of a | |
| 163 | 163 | bug in the name resolution service used by the operating system. | |
| 164 | 164 | ||
| 165 | - Resolves a hostname (e.g. `'nodejs.org'`) into the first found A (IPv4) or | ||
| 165 | + Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or | ||
| 166 | 166 | AAAA (IPv6) record. All `option` properties are optional. If `options` is an | |
| 167 | 167 | integer, then it must be `4` or `6` – if `options` is not provided, then IPv4 | |
| 168 | 168 | and IPv6 addresses are both returned if found. | |
@@ -173,7 +173,7 @@ properties `address` and `family`. | |||
| 173 | 173 | ||
| 174 | 174 | On error, `err` is an [`Error`][] object, where `err.code` is the error code. | |
| 175 | 175 | Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when | |
| 176 | - the hostname does not exist but also when the lookup fails in other ways | ||
| 176 | + the host name does not exist but also when the lookup fails in other ways | ||
| 177 | 177 | such as no available file descriptors. | |
| 178 | 178 | ||
| 179 | 179 | `dns.lookup()` does not necessarily have anything to do with the DNS protocol. | |
@@ -230,7 +230,7 @@ added: v0.11.14 | |||
| 230 | 230 | * `hostname` {string} e.g. `example.com` | |
| 231 | 231 | * `service` {string} e.g. `http` | |
| 232 | 232 | ||
| 233 | - Resolves the given `address` and `port` into a hostname and service using | ||
| 233 | + Resolves the given `address` and `port` into a host name and service using | ||
| 234 | 234 | the operating system's underlying `getnameinfo` implementation. | |
| 235 | 235 | ||
| 236 | 236 | If `address` is not a valid IP address, a `TypeError` will be thrown. | |
@@ -255,13 +255,13 @@ If this method is invoked as its [`util.promisify()`][]ed version, it returns a | |||
| 255 | 255 | added: v0.1.27 | |
| 256 | 256 | --> | |
| 257 | 257 | ||
| 258 | - * `hostname` {string} Hostname to resolve. | ||
| 258 | + * `hostname` {string} Host name to resolve. | ||
| 259 | 259 | * `rrtype` {string} Resource record type. **Default:** `'A'`. | |
| 260 | 260 | * `callback` {Function} | |
| 261 | 261 | * `err` {Error} | |
| 262 | 262 | * `records` {string[] | Object[] | Object} | |
| 263 | 263 | ||
| 264 | - Uses the DNS protocol to resolve a hostname (e.g. `'nodejs.org'`) into an array | ||
| 264 | + Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array | ||
| 265 | 265 | of the resource records. The `callback` function has arguments | |
| 266 | 266 | `(err, records)`. When successful, `records` will be an array of resource | |
| 267 | 267 | records. The type and structure of individual results varies based on `rrtype`: | |
@@ -293,7 +293,7 @@ changes: | |||
| 293 | 293 | specifically `options.ttl`. | |
| 294 | 294 | --> | |
| 295 | 295 | ||
| 296 | - * `hostname` {string} Hostname to resolve. | ||
| 296 | + * `hostname` {string} Host name to resolve. | ||
| 297 | 297 | * `options` {Object} | |
| 298 | 298 | * `ttl` {boolean} Retrieve the Time-To-Live value (TTL) of each record. | |
| 299 | 299 | When `true`, the callback receives an array of | |
@@ -318,7 +318,7 @@ changes: | |||
| 318 | 318 | specifically `options.ttl`. | |
| 319 | 319 | --> | |
| 320 | 320 | ||
| 321 | - * `hostname` {string} Hostname to resolve. | ||
| 321 | + * `hostname` {string} Host name to resolve. | ||
| 322 | 322 | * `options` {Object} | |
| 323 | 323 | * `ttl` {boolean} Retrieve the Time-To-Live value (TTL) of each record. | |
| 324 | 324 | When `true`, the callback receives an array of | |
@@ -565,7 +565,7 @@ added: v0.1.16 | |||
| 565 | 565 | * `hostnames` {string[]} | |
| 566 | 566 | ||
| 567 | 567 | Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an | |
| 568 | - array of hostnames. | ||
| 568 | + array of host names. | ||
| 569 | 569 | ||
| 570 | 570 | On error, `err` is an [`Error`][] object, where `err.code` is | |
| 571 | 571 | one of the [DNS error codes][]. | |
@@ -700,7 +700,7 @@ added: v10.6.0 | |||
| 700 | 700 | expected to change in the not too distant future. | |
| 701 | 701 | New code should use `{ verbatim: true }`. | |
| 702 | 702 | ||
| 703 | - Resolves a hostname (e.g. `'nodejs.org'`) into the first found A (IPv4) or | ||
| 703 | + Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or | ||
| 704 | 704 | AAAA (IPv6) record. All `option` properties are optional. If `options` is an | |
| 705 | 705 | integer, then it must be `4` or `6` – if `options` is not provided, then IPv4 | |
| 706 | 706 | and IPv6 addresses are both returned if found. | |
@@ -711,7 +711,7 @@ being an array of objects with the properties `address` and `family`. | |||
| 711 | 711 | On error, the `Promise` is rejected with an [`Error`][] object, where `err.code` | |
| 712 | 712 | is the error code. | |
| 713 | 713 | Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when | |
| 714 | - the hostname does not exist but also when the lookup fails in other ways | ||
| 714 | + the host name does not exist but also when the lookup fails in other ways | ||
| 715 | 715 | such as no available file descriptors. | |
| 716 | 716 | ||
| 717 | 717 | [`dnsPromises.lookup()`][] does not necessarily have anything to do with the DNS | |
@@ -752,7 +752,7 @@ added: v10.6.0 | |||
| 752 | 752 | * `address` {string} | |
| 753 | 753 | * `port` {number} | |
| 754 | 754 | ||
| 755 | - Resolves the given `address` and `port` into a hostname and service using | ||
| 755 | + Resolves the given `address` and `port` into a host name and service using | ||
| 756 | 756 | the operating system's underlying `getnameinfo` implementation. | |
| 757 | 757 | ||
| 758 | 758 | If `address` is not a valid IP address, a `TypeError` will be thrown. | |
@@ -775,10 +775,10 @@ dnsPromises.lookupService('127.0.0.1', 22).then((result) => { | |||
| 775 | 775 | added: v10.6.0 | |
| 776 | 776 | --> | |
| 777 | 777 | ||
| 778 | - * `hostname` {string} Hostname to resolve. | ||
| 778 | + * `hostname` {string} Host name to resolve. | ||
| 779 | 779 | * `rrtype` {string} Resource record type. **Default:** `'A'`. | |
| 780 | 780 | ||
| 781 | - Uses the DNS protocol to resolve a hostname (e.g. `'nodejs.org'`) into an array | ||
| 781 | + Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array | ||
| 782 | 782 | of the resource records. When successful, the `Promise` is resolved with an | |
| 783 | 783 | array of resource records. The type and structure of individual results vary | |
| 784 | 784 | based on `rrtype`: | |
@@ -805,7 +805,7 @@ is one of the [DNS error codes](#dns_error_codes). | |||
| 805 | 805 | added: v10.6.0 | |
| 806 | 806 | --> | |
| 807 | 807 | ||
| 808 | - * `hostname` {string} Hostname to resolve. | ||
| 808 | + * `hostname` {string} Host name to resolve. | ||
| 809 | 809 | * `options` {Object} | |
| 810 | 810 | * `ttl` {boolean} Retrieve the Time-To-Live value (TTL) of each record. | |
| 811 | 811 | When `true`, the `Promise` is resolved with an array of | |
@@ -821,7 +821,7 @@ addresses (e.g. `['74.125.79.104', '74.125.79.105', '74.125.79.106']`). | |||
| 821 | 821 | added: v10.6.0 | |
| 822 | 822 | --> | |
| 823 | 823 | ||
| 824 | - * `hostname` {string} Hostname to resolve. | ||
| 824 | + * `hostname` {string} Host name to resolve. | ||
| 825 | 825 | * `options` {Object} | |
| 826 | 826 | * `ttl` {boolean} Retrieve the Time-To-Live value (TTL) of each record. | |
| 827 | 827 | When `true`, the `Promise` is resolved with an array of | |
@@ -1033,7 +1033,7 @@ added: v10.6.0 | |||
| 1033 | 1033 | * `ip` {string} | |
| 1034 | 1034 | ||
| 1035 | 1035 | Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an | |
| 1036 | - array of hostnames. | ||
| 1036 | + array of host names. | ||
| 1037 | 1037 | ||
| 1038 | 1038 | On error, the `Promise` is rejected with an [`Error`][] object, where `err.code` | |
| 1039 | 1039 | is one of the [DNS error codes](#dns_error_codes). | |
@@ -1081,7 +1081,7 @@ Each DNS query can return one of the following error codes: | |||
| 1081 | 1081 | * `dns.NOTIMP`: DNS server does not implement requested operation. | |
| 1082 | 1082 | * `dns.REFUSED`: DNS server refused query. | |
| 1083 | 1083 | * `dns.BADQUERY`: Misformatted DNS query. | |
| 1084 | - * `dns.BADNAME`: Misformatted hostname. | ||
| 1084 | + * `dns.BADNAME`: Misformatted host name. | ||
| 1085 | 1085 | * `dns.BADFAMILY`: Unsupported address family. | |
| 1086 | 1086 | * `dns.BADRESP`: Misformatted DNS reply. | |
| 1087 | 1087 | * `dns.CONNREFUSED`: Could not contact DNS servers. | |
@@ -1092,7 +1092,7 @@ Each DNS query can return one of the following error codes: | |||
| 1092 | 1092 | * `dns.DESTRUCTION`: Channel is being destroyed. | |
| 1093 | 1093 | * `dns.BADSTR`: Misformatted string. | |
| 1094 | 1094 | * `dns.BADFLAGS`: Illegal flags specified. | |
| 1095 | - * `dns.NONAME`: Given hostname is not numeric. | ||
| 1095 | + * `dns.NONAME`: Given host name is not numeric. | ||
| 1096 | 1096 | * `dns.BADHINTS`: Illegal hints flags specified. | |
| 1097 | 1097 | * `dns.NOTINITIALIZED`: c-ares library initialization not yet performed. | |
| 1098 | 1098 | * `dns.LOADIPHLPAPI`: Error loading `iphlpapi.dll`. | |
@@ -1124,7 +1124,7 @@ implications for some applications, see the [`UV_THREADPOOL_SIZE`][] | |||
| 1124 | 1124 | documentation for more information. | |
| 1125 | 1125 | ||
| 1126 | 1126 | Various networking APIs will call `dns.lookup()` internally to resolve | |
| 1127 | - host names. If that is an issue, consider resolving the hostname to an address | ||
| 1127 | + host names. If that is an issue, consider resolving the host name to an address | ||
| 1128 | 1128 | using `dns.resolve()` and using the address instead of a host name. Also, some | |
| 1129 | 1129 | networking APIs (such as [`socket.connect()`][] and [`dgram.createSocket()`][]) | |
| 1130 | 1130 | allow the default resolver, `dns.lookup()`, to be replaced. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments