| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2f2f79d commit 135097f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,7 +58,7 @@ The `dns` module contains functions belonging to two different categories: | |||
| 58 | 58 | There are subtle consequences in choosing one over the other, please consult | |
| 59 | 59 | the [Implementation considerations section][] for more information. | |
| 60 | 60 | ||
| 61 | - ## Class: dns.Resolver | ||
| 61 | + ## Class: `dns.Resolver` | ||
| 62 | 62 | <!-- YAML | |
| 63 | 63 | added: v8.3.0 | |
| 64 | 64 | --> | |
@@ -99,15 +99,15 @@ The following methods from the `dns` module are available: | |||
| 99 | 99 | * [`resolver.reverse()`][`dns.reverse()`] | |
| 100 | 100 | * [`resolver.setServers()`][`dns.setServers()`] | |
| 101 | 101 | ||
| 102 | - ### resolver.cancel() | ||
| 102 | + ### `resolver.cancel()` | ||
| 103 | 103 | <!-- YAML | |
| 104 | 104 | added: v8.3.0 | |
| 105 | 105 | --> | |
| 106 | 106 | ||
| 107 | 107 | Cancel all outstanding DNS queries made by this resolver. The corresponding | |
| 108 | 108 | callbacks will be called with an error with code `ECANCELLED`. | |
| 109 | 109 | ||
| 110 | - ## dns.getServers() | ||
| 110 | + ## `dns.getServers()` | ||
| 111 | 111 | <!-- YAML | |
| 112 | 112 | added: v0.11.3 | |
| 113 | 113 | --> | |
@@ -128,7 +128,7 @@ section if a custom port is used. | |||
| 128 | 128 | ] | |
| 129 | 129 | ``` | |
| 130 | 130 | ||
| 131 | - ## dns.lookup(hostname\[, options\], callback) | ||
| 131 | + ## `dns.lookup(hostname[, options], callback)` | ||
| 132 | 132 | <!-- YAML | |
| 133 | 133 | added: v0.1.90 | |
| 134 | 134 | changes: | |
@@ -218,7 +218,7 @@ configured. Loopback addresses are not considered. | |||
| 218 | 218 | found, then return IPv4 mapped IPv6 addresses. It is not supported | |
| 219 | 219 | on some operating systems (e.g FreeBSD 10.1). | |
| 220 | 220 | ||
| 221 | - ## dns.lookupService(address, port, callback) | ||
| 221 | + ## `dns.lookupService(address, port, callback)` | ||
| 222 | 222 | <!-- YAML | |
| 223 | 223 | added: v0.11.14 | |
| 224 | 224 | --> | |
@@ -250,7 +250,7 @@ dns.lookupService('127.0.0.1', 22, (err, hostname, service) => { | |||
| 250 | 250 | If this method is invoked as its [`util.promisify()`][]ed version, it returns a | |
| 251 | 251 | `Promise` for an `Object` with `hostname` and `service` properties. | |
| 252 | 252 | ||
| 253 | - ## dns.resolve(hostname\[, rrtype\], callback) | ||
| 253 | + ## `dns.resolve(hostname[, rrtype], callback)` | ||
| 254 | 254 | <!-- YAML | |
| 255 | 255 | added: v0.1.27 | |
| 256 | 256 | --> | |
@@ -283,7 +283,7 @@ records. The type and structure of individual results varies based on `rrtype`: | |||
| 283 | 283 | On error, `err` is an [`Error`][] object, where `err.code` is one of the | |
| 284 | 284 | [DNS error codes](#dns_error_codes). | |
| 285 | 285 | ||
| 286 | - ## dns.resolve4(hostname\[, options\], callback) | ||
| 286 | + ## `dns.resolve4(hostname[, options], callback)` | ||
| 287 | 287 | <!-- YAML | |
| 288 | 288 | added: v0.1.16 | |
| 289 | 289 | changes: | |
@@ -308,7 +308,7 @@ Uses the DNS protocol to resolve a IPv4 addresses (`A` records) for the | |||
| 308 | 308 | will contain an array of IPv4 addresses (e.g. | |
| 309 | 309 | `['74.125.79.104', '74.125.79.105', '74.125.79.106']`). | |
| 310 | 310 | ||
| 311 | - ## dns.resolve6(hostname\[, options\], callback) | ||
| 311 | + ## `dns.resolve6(hostname[, options], callback)` | ||
| 312 | 312 | <!-- YAML | |
| 313 | 313 | added: v0.1.16 | |
| 314 | 314 | changes: | |
@@ -332,7 +332,7 @@ Uses the DNS protocol to resolve a IPv6 addresses (`AAAA` records) for the | |||
| 332 | 332 | `hostname`. The `addresses` argument passed to the `callback` function | |
| 333 | 333 | will contain an array of IPv6 addresses. | |
| 334 | 334 | ||
| 335 | - ## dns.resolveAny(hostname, callback) | ||
| 335 | + ## `dns.resolveAny(hostname, callback)` | ||
| 336 | 336 | ||
| 337 | 337 | * `hostname` {string} | |
| 338 | 338 | * `callback` {Function} | |
@@ -381,7 +381,7 @@ DNS server operators may choose not to respond to `ANY` | |||
| 381 | 381 | queries. It may be better to call individual methods like [`dns.resolve4()`][], | |
| 382 | 382 | [`dns.resolveMx()`][], and so on. For more details, see [RFC 8482][]. | |
| 383 | 383 | ||
| 384 | - ## dns.resolveCname(hostname, callback) | ||
| 384 | + ## `dns.resolveCname(hostname, callback)` | ||
| 385 | 385 | <!-- YAML | |
| 386 | 386 | added: v0.3.2 | |
| 387 | 387 | --> | |
@@ -396,7 +396,7 @@ Uses the DNS protocol to resolve `CNAME` records for the `hostname`. The | |||
| 396 | 396 | will contain an array of canonical name records available for the `hostname` | |
| 397 | 397 | (e.g. `['bar.example.com']`). | |
| 398 | 398 | ||
| 399 | - ## dns.resolveMx(hostname, callback) | ||
| 399 | + ## `dns.resolveMx(hostname, callback)` | ||
| 400 | 400 | <!-- YAML | |
| 401 | 401 | added: v0.1.27 | |
| 402 | 402 | --> | |
@@ -411,7 +411,7 @@ Uses the DNS protocol to resolve mail exchange records (`MX` records) for the | |||
| 411 | 411 | contain an array of objects containing both a `priority` and `exchange` | |
| 412 | 412 | property (e.g. `[{priority: 10, exchange: 'mx.example.com'}, ...]`). | |
| 413 | 413 | ||
| 414 | - ## dns.resolveNaptr(hostname, callback) | ||
| 414 | + ## `dns.resolveNaptr(hostname, callback)` | ||
| 415 | 415 | <!-- YAML | |
| 416 | 416 | added: v0.9.12 | |
| 417 | 417 | --> | |
@@ -444,7 +444,7 @@ function will contain an array of objects with the following properties: | |||
| 444 | 444 | } | |
| 445 | 445 | ``` | |
| 446 | 446 | ||
| 447 | - ## dns.resolveNs(hostname, callback) | ||
| 447 | + ## `dns.resolveNs(hostname, callback)` | ||
| 448 | 448 | <!-- YAML | |
| 449 | 449 | added: v0.1.90 | |
| 450 | 450 | --> | |
@@ -459,7 +459,7 @@ Uses the DNS protocol to resolve name server records (`NS` records) for the | |||
| 459 | 459 | contain an array of name server records available for `hostname` | |
| 460 | 460 | (e.g. `['ns1.example.com', 'ns2.example.com']`). | |
| 461 | 461 | ||
| 462 | - ## dns.resolvePtr(hostname, callback) | ||
| 462 | + ## `dns.resolvePtr(hostname, callback)` | ||
| 463 | 463 | <!-- YAML | |
| 464 | 464 | added: v6.0.0 | |
| 465 | 465 | --> | |
@@ -473,7 +473,7 @@ Uses the DNS protocol to resolve pointer records (`PTR` records) for the | |||
| 473 | 473 | `hostname`. The `addresses` argument passed to the `callback` function will | |
| 474 | 474 | be an array of strings containing the reply records. | |
| 475 | 475 | ||
| 476 | - ## dns.resolveSoa(hostname, callback) | ||
| 476 | + ## `dns.resolveSoa(hostname, callback)` | ||
| 477 | 477 | <!-- YAML | |
| 478 | 478 | added: v0.11.10 | |
| 479 | 479 | --> | |
@@ -508,7 +508,7 @@ be an object with the following properties: | |||
| 508 | 508 | } | |
| 509 | 509 | ``` | |
| 510 | 510 | ||
| 511 | - ## dns.resolveSrv(hostname, callback) | ||
| 511 | + ## `dns.resolveSrv(hostname, callback)` | ||
| 512 | 512 | <!-- YAML | |
| 513 | 513 | added: v0.1.27 | |
| 514 | 514 | --> | |
@@ -537,7 +537,7 @@ be an array of objects with the following properties: | |||
| 537 | 537 | } | |
| 538 | 538 | ``` | |
| 539 | 539 | ||
| 540 | - ## dns.resolveTxt(hostname, callback) | ||
| 540 | + ## `dns.resolveTxt(hostname, callback)` | ||
| 541 | 541 | <!-- YAML | |
| 542 | 542 | added: v0.1.27 | |
| 543 | 543 | --> | |
@@ -554,7 +554,7 @@ two-dimensional array of the text records available for `hostname` (e.g. | |||
| 554 | 554 | one record. Depending on the use case, these could be either joined together or | |
| 555 | 555 | treated separately. | |
| 556 | 556 | ||
| 557 | - ## dns.reverse(ip, callback) | ||
| 557 | + ## `dns.reverse(ip, callback)` | ||
| 558 | 558 | <!-- YAML | |
| 559 | 559 | added: v0.1.16 | |
| 560 | 560 | --> | |
@@ -570,7 +570,7 @@ array of hostnames. | |||
| 570 | 570 | On error, `err` is an [`Error`][] object, where `err.code` is | |
| 571 | 571 | one of the [DNS error codes][]. | |
| 572 | 572 | ||
| 573 | - ## dns.setServers(servers) | ||
| 573 | + ## `dns.setServers(servers)` | ||
| 574 | 574 | <!-- YAML | |
| 575 | 575 | added: v0.11.3 | |
| 576 | 576 | --> | |
@@ -612,7 +612,7 @@ The `dns.promises` API provides an alternative set of asynchronous DNS methods | |||
| 612 | 612 | that return `Promise` objects rather than using callbacks. The API is accessible | |
| 613 | 613 | via `require('dns').promises`. | |
| 614 | 614 | ||
| 615 | - ### Class: dnsPromises.Resolver | ||
| 615 | + ### Class: `dnsPromises.Resolver` | ||
| 616 | 616 | <!-- YAML | |
| 617 | 617 | added: v10.6.0 | |
| 618 | 618 | --> | |
@@ -658,7 +658,7 @@ The following methods from the `dnsPromises` API are available: | |||
| 658 | 658 | * [`resolver.reverse()`][`dnsPromises.reverse()`] | |
| 659 | 659 | * [`resolver.setServers()`][`dnsPromises.setServers()`] | |
| 660 | 660 | ||
| 661 | - ### dnsPromises.getServers() | ||
| 661 | + ### `dnsPromises.getServers()` | ||
| 662 | 662 | <!-- YAML | |
| 663 | 663 | added: v10.6.0 | |
| 664 | 664 | --> | |
@@ -679,7 +679,7 @@ section if a custom port is used. | |||
| 679 | 679 | ] | |
| 680 | 680 | ``` | |
| 681 | 681 | ||
| 682 | - ### dnsPromises.lookup(hostname\[, options\]) | ||
| 682 | + ### `dnsPromises.lookup(hostname[, options])` | ||
| 683 | 683 | <!-- YAML | |
| 684 | 684 | added: v10.6.0 | |
| 685 | 685 | --> | |
@@ -744,7 +744,7 @@ dnsPromises.lookup('example.com', options).then((result) => { | |||
| 744 | 744 | }); | |
| 745 | 745 | ``` | |
| 746 | 746 | ||
| 747 | - ### dnsPromises.lookupService(address, port) | ||
| 747 | + ### `dnsPromises.lookupService(address, port)` | ||
| 748 | 748 | <!-- YAML | |
| 749 | 749 | added: v10.6.0 | |
| 750 | 750 | --> | |
@@ -770,7 +770,7 @@ dnsPromises.lookupService('127.0.0.1', 22).then((result) => { | |||
| 770 | 770 | }); | |
| 771 | 771 | ``` | |
| 772 | 772 | ||
| 773 | - ### dnsPromises.resolve(hostname\[, rrtype\]) | ||
| 773 | + ### `dnsPromises.resolve(hostname[, rrtype])` | ||
| 774 | 774 | <!-- YAML | |
| 775 | 775 | added: v10.6.0 | |
| 776 | 776 | --> | |
@@ -800,7 +800,7 @@ based on `rrtype`: | |||
| 800 | 800 | On error, the `Promise` is rejected with an [`Error`][] object, where `err.code` | |
| 801 | 801 | is one of the [DNS error codes](#dns_error_codes). | |
| 802 | 802 | ||
| 803 | - ### dnsPromises.resolve4(hostname\[, options\]) | ||
| 803 | + ### `dnsPromises.resolve4(hostname[, options])` | ||
| 804 | 804 | <!-- YAML | |
| 805 | 805 | added: v10.6.0 | |
| 806 | 806 | --> | |
@@ -816,7 +816,7 @@ Uses the DNS protocol to resolve IPv4 addresses (`A` records) for the | |||
| 816 | 816 | `hostname`. On success, the `Promise` is resolved with an array of IPv4 | |
| 817 | 817 | addresses (e.g. `['74.125.79.104', '74.125.79.105', '74.125.79.106']`). | |
| 818 | 818 | ||
| 819 | - ### dnsPromises.resolve6(hostname\[, options\]) | ||
| 819 | + ### `dnsPromises.resolve6(hostname[, options])` | ||
| 820 | 820 | <!-- YAML | |
| 821 | 821 | added: v10.6.0 | |
| 822 | 822 | --> | |
@@ -832,7 +832,7 @@ Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the | |||
| 832 | 832 | `hostname`. On success, the `Promise` is resolved with an array of IPv6 | |
| 833 | 833 | addresses. | |
| 834 | 834 | ||
| 835 | - ### dnsPromises.resolveAny(hostname) | ||
| 835 | + ### `dnsPromises.resolveAny(hostname)` | ||
| 836 | 836 | <!-- YAML | |
| 837 | 837 | added: v10.6.0 | |
| 838 | 838 | --> | |
@@ -877,7 +877,7 @@ Here is an example of the result object: | |||
| 877 | 877 | minttl: 60 } ] | |
| 878 | 878 | ``` | |
| 879 | 879 | ||
| 880 | - ### dnsPromises.resolveCname(hostname) | ||
| 880 | + ### `dnsPromises.resolveCname(hostname)` | ||
| 881 | 881 | <!-- YAML | |
| 882 | 882 | added: v10.6.0 | |
| 883 | 883 | --> | |
@@ -888,7 +888,7 @@ Uses the DNS protocol to resolve `CNAME` records for the `hostname`. On success, | |||
| 888 | 888 | the `Promise` is resolved with an array of canonical name records available for | |
| 889 | 889 | the `hostname` (e.g. `['bar.example.com']`). | |
| 890 | 890 | ||
| 891 | - ### dnsPromises.resolveMx(hostname) | ||
| 891 | + ### `dnsPromises.resolveMx(hostname)` | ||
| 892 | 892 | <!-- YAML | |
| 893 | 893 | added: v10.6.0 | |
| 894 | 894 | --> | |
@@ -900,7 +900,7 @@ Uses the DNS protocol to resolve mail exchange records (`MX` records) for the | |||
| 900 | 900 | containing both a `priority` and `exchange` property (e.g. | |
| 901 | 901 | `[{priority: 10, exchange: 'mx.example.com'}, ...]`). | |
| 902 | 902 | ||
| 903 | - ### dnsPromises.resolveNaptr(hostname) | ||
| 903 | + ### `dnsPromises.resolveNaptr(hostname)` | ||
| 904 | 904 | <!-- YAML | |
| 905 | 905 | added: v10.6.0 | |
| 906 | 906 | --> | |
@@ -930,7 +930,7 @@ of objects with the following properties: | |||
| 930 | 930 | } | |
| 931 | 931 | ``` | |
| 932 | 932 | ||
| 933 | - ### dnsPromises.resolveNs(hostname) | ||
| 933 | + ### `dnsPromises.resolveNs(hostname)` | ||
| 934 | 934 | <!-- YAML | |
| 935 | 935 | added: v10.6.0 | |
| 936 | 936 | --> | |
@@ -942,7 +942,7 @@ Uses the DNS protocol to resolve name server records (`NS` records) for the | |||
| 942 | 942 | records available for `hostname` (e.g. | |
| 943 | 943 | `['ns1.example.com', 'ns2.example.com']`). | |
| 944 | 944 | ||
| 945 | - ### dnsPromises.resolvePtr(hostname) | ||
| 945 | + ### `dnsPromises.resolvePtr(hostname)` | ||
| 946 | 946 | <!-- YAML | |
| 947 | 947 | added: v10.6.0 | |
| 948 | 948 | --> | |
@@ -953,7 +953,7 @@ Uses the DNS protocol to resolve pointer records (`PTR` records) for the | |||
| 953 | 953 | `hostname`. On success, the `Promise` is resolved with an array of strings | |
| 954 | 954 | containing the reply records. | |
| 955 | 955 | ||
| 956 | - ### dnsPromises.resolveSoa(hostname) | ||
| 956 | + ### `dnsPromises.resolveSoa(hostname)` | ||
| 957 | 957 | <!-- YAML | |
| 958 | 958 | added: v10.6.0 | |
| 959 | 959 | --> | |
@@ -985,7 +985,7 @@ following properties: | |||
| 985 | 985 | } | |
| 986 | 986 | ``` | |
| 987 | 987 | ||
| 988 | - ### dnsPromises.resolveSrv(hostname) | ||
| 988 | + ### `dnsPromises.resolveSrv(hostname)` | ||
| 989 | 989 | <!-- YAML | |
| 990 | 990 | added: v10.6.0 | |
| 991 | 991 | --> | |
@@ -1011,7 +1011,7 @@ the following properties: | |||
| 1011 | 1011 | } | |
| 1012 | 1012 | ``` | |
| 1013 | 1013 | ||
| 1014 | - ### dnsPromises.resolveTxt(hostname) | ||
| 1014 | + ### `dnsPromises.resolveTxt(hostname)` | ||
| 1015 | 1015 | <!-- YAML | |
| 1016 | 1016 | added: v10.6.0 | |
| 1017 | 1017 | --> | |
@@ -1025,7 +1025,7 @@ of the text records available for `hostname` (e.g. | |||
| 1025 | 1025 | one record. Depending on the use case, these could be either joined together or | |
| 1026 | 1026 | treated separately. | |
| 1027 | 1027 | ||
| 1028 | - ### dnsPromises.reverse(ip) | ||
| 1028 | + ### `dnsPromises.reverse(ip)` | ||
| 1029 | 1029 | <!-- YAML | |
| 1030 | 1030 | added: v10.6.0 | |
| 1031 | 1031 | --> | |
@@ -1038,7 +1038,7 @@ array of hostnames. | |||
| 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). | |
| 1040 | 1040 | ||
| 1041 | - ### dnsPromises.setServers(servers) | ||
| 1041 | + ### `dnsPromises.setServers(servers)` | ||
| 1042 | 1042 | <!-- YAML | |
| 1043 | 1043 | added: v10.6.0 | |
| 1044 | 1044 | --> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments