@@ -56,7 +56,7 @@ dns.resolve4('archive.org', (err, addresses) => {
56
56
There are subtle consequences in choosing one over the other, please consult
57
57
the [ Implementation considerations section] [ ] for more information.
58
58
59
- ## Class: dns.Resolver
59
+ ## Class: ` dns.Resolver `
60
60
<!-- YAML
61
61
added: v8.3.0
62
62
-->
@@ -97,15 +97,15 @@ The following methods from the `dns` module are available:
97
97
* [ ` resolver.reverse() ` ] [ `dns.reverse()` ]
98
98
* [ ` resolver.setServers() ` ] [ `dns.setServers()` ]
99
99
100
- ### resolver.cancel()
100
+ ### ` resolver.cancel() `
101
101
<!-- YAML
102
102
added: v8.3.0
103
103
-->
104
104
105
105
Cancel all outstanding DNS queries made by this resolver. The corresponding
106
106
callbacks will be called with an error with code ` ECANCELLED ` .
107
107
108
- ## dns.getServers()
108
+ ## ` dns.getServers() `
109
109
<!-- YAML
110
110
added: v0.11.3
111
111
-->
@@ -126,7 +126,7 @@ section if a custom port is used.
126
126
]
127
127
```
128
128
129
- ## dns.lookup(hostname[ , options] , callback)
129
+ ## ` dns.lookup(hostname[, options], callback) `
130
130
<!-- YAML
131
131
added: v0.1.90
132
132
changes:
@@ -212,7 +212,7 @@ configured. Loopback addresses are not considered.
212
212
found, then return IPv4 mapped IPv6 addresses. Note that it is not supported
213
213
on some operating systems (e.g FreeBSD 10.1).
214
214
215
- ## dns.lookupService(address, port, callback)
215
+ ## ` dns.lookupService(address, port, callback) `
216
216
<!-- YAML
217
217
added: v0.11.14
218
218
-->
@@ -243,7 +243,7 @@ dns.lookupService('127.0.0.1', 22, (err, hostname, service) => {
243
243
If this method is invoked as its [ ` util.promisify() ` ] [ ] ed version, it returns a
244
244
` Promise ` for an ` Object ` with ` hostname ` and ` service ` properties.
245
245
246
- ## dns.resolve(hostname[ , rrtype] , callback)
246
+ ## ` dns.resolve(hostname[, rrtype], callback) `
247
247
<!-- YAML
248
248
added: v0.1.27
249
249
-->
@@ -275,7 +275,7 @@ records. The type and structure of individual results varies based on `rrtype`:
275
275
On error, ` err ` is an [ ` Error ` ] [ ] object, where ` err.code ` is one of the
276
276
[ DNS error codes] ( #dns_error_codes ) .
277
277
278
- ## dns.resolve4(hostname[ , options] , callback)
278
+ ## ` dns.resolve4(hostname[, options], callback) `
279
279
<!-- YAML
280
280
added: v0.1.16
281
281
changes:
@@ -299,7 +299,7 @@ Uses the DNS protocol to resolve a IPv4 addresses (`A` records) for the
299
299
will contain an array of IPv4 addresses (e.g.
300
300
` ['74.125.79.104', '74.125.79.105', '74.125.79.106'] ` ).
301
301
302
- ## dns.resolve6(hostname[ , options] , callback)
302
+ ## ` dns.resolve6(hostname[, options], callback) `
303
303
<!-- YAML
304
304
added: v0.1.16
305
305
changes:
@@ -322,7 +322,7 @@ Uses the DNS protocol to resolve a IPv6 addresses (`AAAA` records) for the
322
322
` hostname ` . The ` addresses ` argument passed to the ` callback ` function
323
323
will contain an array of IPv6 addresses.
324
324
325
- ## dns.resolveAny(hostname, callback)
325
+ ## ` dns.resolveAny(hostname, callback) `
326
326
327
327
* ` hostname ` {string}
328
328
* ` callback ` {Function}
@@ -371,7 +371,7 @@ DNS server operators may choose not to respond to `ANY`
371
371
queries. It may be better to call individual methods like [ ` dns.resolve4() ` ] [ ] ,
372
372
[ ` dns.resolveMx() ` ] [ ] , and so on. For more details, see [ RFC 8482] [ ] .
373
373
374
- ## dns.resolveCname(hostname, callback)
374
+ ## ` dns.resolveCname(hostname, callback) `
375
375
<!-- YAML
376
376
added: v0.3.2
377
377
-->
@@ -385,7 +385,7 @@ Uses the DNS protocol to resolve `CNAME` records for the `hostname`. The
385
385
will contain an array of canonical name records available for the ` hostname `
386
386
(e.g. ` ['bar.example.com'] ` ).
387
387
388
- ## dns.resolveMx(hostname, callback)
388
+ ## ` dns.resolveMx(hostname, callback) `
389
389
<!-- YAML
390
390
added: v0.1.27
391
391
-->
@@ -399,7 +399,7 @@ Uses the DNS protocol to resolve mail exchange records (`MX` records) for the
399
399
contain an array of objects containing both a ` priority ` and ` exchange `
400
400
property (e.g. ` [{priority: 10, exchange: 'mx.example.com'}, ...] ` ).
401
401
402
- ## dns.resolveNaptr(hostname, callback)
402
+ ## ` dns.resolveNaptr(hostname, callback) `
403
403
<!-- YAML
404
404
added: v0.9.12
405
405
-->
@@ -431,7 +431,7 @@ function will contain an array of objects with the following properties:
431
431
}
432
432
```
433
433
434
- ## dns.resolveNs(hostname, callback)
434
+ ## ` dns.resolveNs(hostname, callback) `
435
435
<!-- YAML
436
436
added: v0.1.90
437
437
-->
@@ -445,7 +445,7 @@ Uses the DNS protocol to resolve name server records (`NS` records) for the
445
445
contain an array of name server records available for ` hostname `
446
446
(e.g. ` ['ns1.example.com', 'ns2.example.com'] ` ).
447
447
448
- ## dns.resolvePtr(hostname, callback)
448
+ ## ` dns.resolvePtr(hostname, callback) `
449
449
<!-- YAML
450
450
added: v6.0.0
451
451
-->
@@ -458,7 +458,7 @@ Uses the DNS protocol to resolve pointer records (`PTR` records) for the
458
458
` hostname ` . The ` addresses ` argument passed to the ` callback ` function will
459
459
be an array of strings containing the reply records.
460
460
461
- ## dns.resolveSoa(hostname, callback)
461
+ ## ` dns.resolveSoa(hostname, callback) `
462
462
<!-- YAML
463
463
added: v0.11.10
464
464
-->
@@ -492,7 +492,7 @@ be an object with the following properties:
492
492
}
493
493
```
494
494
495
- ## dns.resolveSrv(hostname, callback)
495
+ ## ` dns.resolveSrv(hostname, callback) `
496
496
<!-- YAML
497
497
added: v0.1.27
498
498
-->
@@ -520,7 +520,7 @@ be an array of objects with the following properties:
520
520
}
521
521
```
522
522
523
- ## dns.resolveTxt(hostname, callback)
523
+ ## ` dns.resolveTxt(hostname, callback) `
524
524
<!-- YAML
525
525
added: v0.1.27
526
526
-->
@@ -536,7 +536,7 @@ two-dimensional array of the text records available for `hostname` (e.g.
536
536
one record. Depending on the use case, these could be either joined together or
537
537
treated separately.
538
538
539
- ## dns.reverse(ip, callback)
539
+ ## ` dns.reverse(ip, callback) `
540
540
<!-- YAML
541
541
added: v0.1.16
542
542
-->
@@ -551,7 +551,7 @@ array of hostnames.
551
551
On error, ` err ` is an [ ` Error ` ] [ ] object, where ` err.code ` is
552
552
one of the [ DNS error codes] [ ] .
553
553
554
- ## dns.setServers(servers)
554
+ ## ` dns.setServers(servers) `
555
555
<!-- YAML
556
556
added: v0.11.3
557
557
-->
@@ -594,7 +594,7 @@ The `dns.promises` API provides an alternative set of asynchronous DNS methods
594
594
that return ` Promise ` objects rather than using callbacks. The API is accessible
595
595
via ` require('dns').promises ` .
596
596
597
- ### Class: dnsPromises.Resolver
597
+ ### Class: ` dnsPromises.Resolver `
598
598
<!-- YAML
599
599
added: v10.6.0
600
600
-->
@@ -640,7 +640,7 @@ The following methods from the `dnsPromises` API are available:
640
640
* [ ` resolver.reverse() ` ] [ `dnsPromises.reverse()` ]
641
641
* [ ` resolver.setServers() ` ] [ `dnsPromises.setServers()` ]
642
642
643
- ### dnsPromises.getServers()
643
+ ### ` dnsPromises.getServers() `
644
644
<!-- YAML
645
645
added: v10.6.0
646
646
-->
@@ -661,7 +661,7 @@ section if a custom port is used.
661
661
]
662
662
```
663
663
664
- ### dnsPromises.lookup(hostname[ , options] )
664
+ ### ` dnsPromises.lookup(hostname[, options]) `
665
665
<!-- YAML
666
666
added: v10.6.0
667
667
-->
@@ -724,7 +724,7 @@ dnsPromises.lookup('example.com', options).then((result) => {
724
724
});
725
725
```
726
726
727
- ### dnsPromises.lookupService(address, port)
727
+ ### ` dnsPromises.lookupService(address, port) `
728
728
<!-- YAML
729
729
added: v10.6.0
730
730
-->
@@ -749,7 +749,7 @@ dnsPromises.lookupService('127.0.0.1', 22).then((result) => {
749
749
});
750
750
```
751
751
752
- ### dnsPromises.resolve(hostname[ , rrtype] )
752
+ ### ` dnsPromises.resolve(hostname[, rrtype]) `
753
753
<!-- YAML
754
754
added: v10.6.0
755
755
-->
@@ -778,7 +778,7 @@ based on `rrtype`:
778
778
On error, the ` Promise ` is rejected with an [ ` Error ` ] [ ] object, where ` err.code `
779
779
is one of the [ DNS error codes] ( #dns_error_codes ) .
780
780
781
- ### dnsPromises.resolve4(hostname[ , options] )
781
+ ### ` dnsPromises.resolve4(hostname[, options]) `
782
782
<!-- YAML
783
783
added: v10.6.0
784
784
-->
@@ -793,7 +793,7 @@ Uses the DNS protocol to resolve IPv4 addresses (`A` records) for the
793
793
` hostname ` . On success, the ` Promise ` is resolved with an array of IPv4
794
794
addresses (e.g. ` ['74.125.79.104', '74.125.79.105', '74.125.79.106'] ` ).
795
795
796
- ### dnsPromises.resolve6(hostname[ , options] )
796
+ ### ` dnsPromises.resolve6(hostname[, options]) `
797
797
<!-- YAML
798
798
added: v10.6.0
799
799
-->
@@ -808,7 +808,7 @@ Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the
808
808
` hostname ` . On success, the ` Promise ` is resolved with an array of IPv6
809
809
addresses.
810
810
811
- ### dnsPromises.resolveAny(hostname)
811
+ ### ` dnsPromises.resolveAny(hostname) `
812
812
<!-- YAML
813
813
added: v10.6.0
814
814
-->
@@ -852,7 +852,7 @@ Here is an example of the result object:
852
852
minttl: 60 } ]
853
853
```
854
854
855
- ### dnsPromises.resolveCname(hostname)
855
+ ### ` dnsPromises.resolveCname(hostname) `
856
856
<!-- YAML
857
857
added: v10.6.0
858
858
-->
@@ -862,7 +862,7 @@ Uses the DNS protocol to resolve `CNAME` records for the `hostname`. On success,
862
862
the ` Promise ` is resolved with an array of canonical name records available for
863
863
the ` hostname ` (e.g. ` ['bar.example.com'] ` ).
864
864
865
- ### dnsPromises.resolveMx(hostname)
865
+ ### ` dnsPromises.resolveMx(hostname) `
866
866
<!-- YAML
867
867
added: v10.6.0
868
868
-->
@@ -873,7 +873,7 @@ Uses the DNS protocol to resolve mail exchange records (`MX` records) for the
873
873
containing both a ` priority ` and ` exchange ` property (e.g.
874
874
` [{priority: 10, exchange: 'mx.example.com'}, ...] ` ).
875
875
876
- ### dnsPromises.resolveNaptr(hostname)
876
+ ### ` dnsPromises.resolveNaptr(hostname) `
877
877
<!-- YAML
878
878
added: v10.6.0
879
879
-->
@@ -902,7 +902,7 @@ of objects with the following properties:
902
902
}
903
903
```
904
904
905
- ### dnsPromises.resolveNs(hostname)
905
+ ### ` dnsPromises.resolveNs(hostname) `
906
906
<!-- YAML
907
907
added: v10.6.0
908
908
-->
@@ -913,7 +913,7 @@ Uses the DNS protocol to resolve name server records (`NS` records) for the
913
913
records available for ` hostname ` (e.g.
914
914
` ['ns1.example.com', 'ns2.example.com'] ` ).
915
915
916
- ### dnsPromises.resolvePtr(hostname)
916
+ ### ` dnsPromises.resolvePtr(hostname) `
917
917
<!-- YAML
918
918
added: v10.6.0
919
919
-->
@@ -923,7 +923,7 @@ Uses the DNS protocol to resolve pointer records (`PTR` records) for the
923
923
` hostname ` . On success, the ` Promise ` is resolved with an array of strings
924
924
containing the reply records.
925
925
926
- ### dnsPromises.resolveSoa(hostname)
926
+ ### ` dnsPromises.resolveSoa(hostname) `
927
927
<!-- YAML
928
928
added: v10.6.0
929
929
-->
@@ -954,7 +954,7 @@ following properties:
954
954
}
955
955
```
956
956
957
- ### dnsPromises.resolveSrv(hostname)
957
+ ### ` dnsPromises.resolveSrv(hostname) `
958
958
<!-- YAML
959
959
added: v10.6.0
960
960
-->
@@ -979,7 +979,7 @@ the following properties:
979
979
}
980
980
```
981
981
982
- ### dnsPromises.resolveTxt(hostname)
982
+ ### ` dnsPromises.resolveTxt(hostname) `
983
983
<!-- YAML
984
984
added: v10.6.0
985
985
-->
@@ -992,7 +992,7 @@ of the text records available for `hostname` (e.g.
992
992
one record. Depending on the use case, these could be either joined together or
993
993
treated separately.
994
994
995
- ### dnsPromises.reverse(ip)
995
+ ### ` dnsPromises.reverse(ip) `
996
996
<!-- YAML
997
997
added: v10.6.0
998
998
-->
@@ -1004,7 +1004,7 @@ array of hostnames.
1004
1004
On error, the ` Promise ` is rejected with an [ ` Error ` ] [ ] object, where ` err.code `
1005
1005
is one of the [ DNS error codes] ( #dns_error_codes ) .
1006
1006
1007
- ### dnsPromises.setServers(servers)
1007
+ ### ` dnsPromises.setServers(servers) `
1008
1008
<!-- YAML
1009
1009
added: v10.6.0
1010
1010
-->
0 commit comments