@@ -58,7 +58,7 @@ The `dns` module contains functions belonging to two different categories:
5858There are subtle consequences in choosing one over the other, please consult
5959the [Implementation considerations section][] for more information.
6060
61- ## Class: dns.Resolver
61+ ## Class: ` dns.Resolver`
6262<!-- YAML
6363added: v8.3.0
6464-->
@@ -99,15 +99,15 @@ The following methods from the `dns` module are available:
9999* [`resolver.reverse()`][`dns.reverse()`]
100100* [`resolver.setServers()`][`dns.setServers()`]
101101
102- ### resolver.cancel()
102+ ### ` resolver.cancel()`
103103<!-- YAML
104104added: v8.3.0
105105-->
106106
107107Cancel all outstanding DNS queries made by this resolver. The corresponding
108108callbacks will be called with an error with code `ECANCELLED`.
109109
110- ## dns.getServers()
110+ ## ` dns.getServers()`
111111<!-- YAML
112112added: v0.11.3
113113-->
@@ -128,7 +128,7 @@ section if a custom port is used.
128128]
129129```
130130
131- ## dns.lookup(hostname\ [ , options\ ] , callback)
131+ ## ` dns.lookup(hostname[, options], callback)`
132132<!-- YAML
133133added: v0.1.90
134134changes:
@@ -218,7 +218,7 @@ configured. Loopback addresses are not considered.
218218found, then return IPv4 mapped IPv6 addresses. It is not supported
219219on some operating systems (e.g FreeBSD 10.1).
220220
221- ## dns.lookupService(address, port, callback)
221+ ## ` dns.lookupService(address, port, callback)`
222222<!-- YAML
223223added: v0.11.14
224224-->
@@ -250,7 +250,7 @@ dns.lookupService('127.0.0.1', 22, (err, hostname, service) => {
250250If this method is invoked as its [` util.promisify()` ][]ed version, it returns a
251251` Promise` for an ` Object` with ` hostname` and ` service` properties.
252252
253- ## dns .resolve (hostname\ [, rrtype\ ], callback)
253+ ## ` dns.resolve(hostname[, rrtype], callback)`
254254<!-- YAML
255255added: v0.1 .27
256256-->
@@ -283,7 +283,7 @@ records. The type and structure of individual results varies based on `rrtype`:
283283On error, ` err` is an [` Error` ][] object, where ` err.code` is one of the
284284[DNS error codes](#dns_error_codes).
285285
286- ## dns .resolve4 (hostname\ [, options\ ], callback)
286+ ## ` dns.resolve4(hostname[, options], callback)`
287287<!-- YAML
288288added: v0.1 .16
289289changes:
@@ -308,7 +308,7 @@ Uses the DNS protocol to resolve a IPv4 addresses (`A` records) for the
308308will contain an array of IPv4 addresses (e .g .
309309` ['74.125.79.104', '74.125.79.105', '74.125.79.106']` ).
310310
311- ## dns.resolve6(hostname\ [, options\ ], callback)
311+ ## ` dns.resolve6(hostname[, options], callback)`
312312<!-- YAML
313313added: v0.1.16
314314changes:
@@ -332,7 +332,7 @@ Uses the DNS protocol to resolve a IPv6 addresses (`AAAA` records) for the
332332` hostname` . The ` addresses` argument passed to the ` callback` function
333333will contain an array of IPv6 addresses.
334334
335- ## dns.resolveAny (hostname , callback )
335+ ## ` dns.resolveAny (hostname , callback )`
336336
337337* `hostname` {string}
338338* ` callback` {Function }
@@ -381,7 +381,7 @@ DNS server operators may choose not to respond to `ANY`
381381queries. It may be better to call individual methods like [ ` dns.resolve4() ` ] [ ] ,
382382[ ` dns.resolveMx() ` ] [ ] , and so on. For more details, see [ RFC 8482] [ ] .
383383
384- ## dns.resolveCname(hostname, callback)
384+ ## ` dns.resolveCname(hostname, callback) `
385385<!-- YAML
386386added: v0.3.2
387387-->
@@ -396,7 +396,7 @@ Uses the DNS protocol to resolve `CNAME` records for the `hostname`. The
396396will contain an array of canonical name records available for the ` hostname `
397397(e.g. ` ['bar.example.com'] ` ).
398398
399- ## dns.resolveMx(hostname, callback)
399+ ## ` dns.resolveMx(hostname, callback) `
400400<!-- YAML
401401added: v0.1.27
402402-->
@@ -411,7 +411,7 @@ Uses the DNS protocol to resolve mail exchange records (`MX` records) for the
411411contain an array of objects containing both a ` priority ` and ` exchange `
412412property (e.g. ` [{priority: 10, exchange: 'mx.example.com'}, ...] ` ).
413413
414- ## dns.resolveNaptr(hostname, callback)
414+ ## ` dns.resolveNaptr(hostname, callback) `
415415<!-- YAML
416416added: v0.9.12
417417-->
@@ -444,7 +444,7 @@ function will contain an array of objects with the following properties:
444444}
445445```
446446
447- ## dns.resolveNs(hostname, callback)
447+ ## ` dns.resolveNs(hostname, callback) `
448448<!-- YAML
449449added: v0.1.90
450450-->
@@ -459,7 +459,7 @@ Uses the DNS protocol to resolve name server records (`NS` records) for the
459459contain an array of name server records available for ` hostname `
460460(e.g. ` ['ns1.example.com', 'ns2.example.com'] ` ).
461461
462- ## dns.resolvePtr(hostname, callback)
462+ ## ` dns.resolvePtr(hostname, callback) `
463463<!-- YAML
464464added: v6.0.0
465465-->
@@ -473,7 +473,7 @@ Uses the DNS protocol to resolve pointer records (`PTR` records) for the
473473` hostname ` . The ` addresses ` argument passed to the ` callback ` function will
474474be an array of strings containing the reply records.
475475
476- ## dns.resolveSoa(hostname, callback)
476+ ## ` dns.resolveSoa(hostname, callback) `
477477<!-- YAML
478478added: v0.11.10
479479-->
@@ -508,7 +508,7 @@ be an object with the following properties:
508508}
509509```
510510
511- ## dns.resolveSrv(hostname, callback)
511+ ## ` dns.resolveSrv(hostname, callback) `
512512<!-- YAML
513513added: v0.1.27
514514-->
@@ -537,7 +537,7 @@ be an array of objects with the following properties:
537537}
538538```
539539
540- ## dns.resolveTxt(hostname, callback)
540+ ## ` dns.resolveTxt(hostname, callback) `
541541<!-- YAML
542542added: v0.1.27
543543-->
@@ -554,7 +554,7 @@ two-dimensional array of the text records available for `hostname` (e.g.
554554one record. Depending on the use case, these could be either joined together or
555555treated separately.
556556
557- ## dns.reverse(ip, callback)
557+ ## ` dns.reverse(ip, callback) `
558558<!-- YAML
559559added: v0.1.16
560560-->
@@ -570,7 +570,7 @@ array of hostnames.
570570On error, ` err ` is an [ ` Error ` ] [ ] object, where ` err.code ` is
571571one of the [ DNS error codes] [ ] .
572572
573- ## dns.setServers(servers)
573+ ## ` dns.setServers(servers) `
574574<!-- YAML
575575added: v0.11.3
576576-->
@@ -612,7 +612,7 @@ The `dns.promises` API provides an alternative set of asynchronous DNS methods
612612that return ` Promise ` objects rather than using callbacks. The API is accessible
613613via ` require('dns').promises ` .
614614
615- ### Class: dnsPromises.Resolver
615+ ### Class: ` dnsPromises.Resolver `
616616<!-- YAML
617617added: v10.6.0
618618-->
@@ -658,7 +658,7 @@ The following methods from the `dnsPromises` API are available:
658658* [ ` resolver.reverse() ` ] [ `dnsPromises.reverse()` ]
659659* [ ` resolver.setServers() ` ] [ `dnsPromises.setServers()` ]
660660
661- ### dnsPromises.getServers()
661+ ### ` dnsPromises.getServers() `
662662<!-- YAML
663663added: v10.6.0
664664-->
@@ -679,7 +679,7 @@ section if a custom port is used.
679679]
680680```
681681
682- ### dnsPromises.lookup(hostname\ [ , options\] )
682+ ### ` dnsPromises.lookup(hostname[, options]) `
683683<!-- YAML
684684added: v10.6.0
685685-->
@@ -744,7 +744,7 @@ dnsPromises.lookup('example.com', options).then((result) => {
744744});
745745```
746746
747- ### dnsPromises.lookupService(address, port)
747+ ### ` dnsPromises.lookupService(address, port) `
748748<!-- YAML
749749added: v10.6.0
750750-->
@@ -770,7 +770,7 @@ dnsPromises.lookupService('127.0.0.1', 22).then((result) => {
770770});
771771```
772772
773- ### dnsPromises.resolve(hostname\ [ , rrtype\] )
773+ ### ` dnsPromises.resolve(hostname[, rrtype]) `
774774<!-- YAML
775775added: v10.6.0
776776-->
@@ -800,7 +800,7 @@ based on `rrtype`:
800800On error, the ` Promise ` is rejected with an [ ` Error ` ] [ ] object, where ` err.code `
801801is one of the [ DNS error codes] ( #dns_error_codes ) .
802802
803- ### dnsPromises.resolve4(hostname\ [ , options\] )
803+ ### ` dnsPromises.resolve4(hostname[, options]) `
804804<!-- YAML
805805added: v10.6.0
806806-->
@@ -816,7 +816,7 @@ Uses the DNS protocol to resolve IPv4 addresses (`A` records) for the
816816` hostname ` . On success, the ` Promise ` is resolved with an array of IPv4
817817addresses (e.g. ` ['74.125.79.104', '74.125.79.105', '74.125.79.106'] ` ).
818818
819- ### dnsPromises.resolve6(hostname\ [ , options\] )
819+ ### ` dnsPromises.resolve6(hostname[, options]) `
820820<!-- YAML
821821added: v10.6.0
822822-->
@@ -832,7 +832,7 @@ Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the
832832` hostname ` . On success, the ` Promise ` is resolved with an array of IPv6
833833addresses.
834834
835- ### dnsPromises.resolveAny(hostname)
835+ ### ` dnsPromises.resolveAny(hostname) `
836836<!-- YAML
837837added: v10.6.0
838838-->
@@ -877,7 +877,7 @@ Here is an example of the result object:
877877 minttl: 60 } ]
878878```
879879
880- ### dnsPromises.resolveCname(hostname)
880+ ### ` dnsPromises.resolveCname(hostname) `
881881<!-- YAML
882882added: v10.6.0
883883-->
@@ -888,7 +888,7 @@ Uses the DNS protocol to resolve `CNAME` records for the `hostname`. On success,
888888the ` Promise ` is resolved with an array of canonical name records available for
889889the ` hostname ` (e.g. ` ['bar.example.com'] ` ).
890890
891- ### dnsPromises.resolveMx(hostname)
891+ ### ` dnsPromises.resolveMx(hostname) `
892892<!-- YAML
893893added: v10.6.0
894894-->
@@ -900,7 +900,7 @@ Uses the DNS protocol to resolve mail exchange records (`MX` records) for the
900900containing both a ` priority ` and ` exchange ` property (e.g.
901901` [{priority: 10, exchange: 'mx.example.com'}, ...] ` ).
902902
903- ### dnsPromises.resolveNaptr(hostname)
903+ ### ` dnsPromises.resolveNaptr(hostname) `
904904<!-- YAML
905905added: v10.6.0
906906-->
@@ -930,7 +930,7 @@ of objects with the following properties:
930930}
931931```
932932
933- ### dnsPromises.resolveNs(hostname)
933+ ### ` dnsPromises.resolveNs(hostname) `
934934<!-- YAML
935935added: v10.6.0
936936-->
@@ -942,7 +942,7 @@ Uses the DNS protocol to resolve name server records (`NS` records) for the
942942records available for ` hostname ` (e.g.
943943` ['ns1.example.com', 'ns2.example.com'] ` ).
944944
945- ### dnsPromises.resolvePtr(hostname)
945+ ### ` dnsPromises.resolvePtr(hostname) `
946946<!-- YAML
947947added: v10.6.0
948948-->
@@ -953,7 +953,7 @@ Uses the DNS protocol to resolve pointer records (`PTR` records) for the
953953` hostname ` . On success, the ` Promise ` is resolved with an array of strings
954954containing the reply records.
955955
956- ### dnsPromises.resolveSoa(hostname)
956+ ### ` dnsPromises.resolveSoa(hostname) `
957957<!-- YAML
958958added: v10.6.0
959959-->
@@ -985,7 +985,7 @@ following properties:
985985}
986986```
987987
988- ### dnsPromises.resolveSrv(hostname)
988+ ### ` dnsPromises.resolveSrv(hostname) `
989989<!-- YAML
990990added: v10.6.0
991991-->
@@ -1011,7 +1011,7 @@ the following properties:
10111011}
10121012```
10131013
1014- ### dnsPromises.resolveTxt(hostname)
1014+ ### ` dnsPromises.resolveTxt(hostname) `
10151015<!-- YAML
10161016added: v10.6.0
10171017-->
@@ -1025,7 +1025,7 @@ of the text records available for `hostname` (e.g.
10251025one record. Depending on the use case, these could be either joined together or
10261026treated separately.
10271027
1028- ### dnsPromises.reverse(ip)
1028+ ### ` dnsPromises.reverse(ip) `
10291029<!-- YAML
10301030added: v10.6.0
10311031-->
@@ -1038,7 +1038,7 @@ array of hostnames.
10381038On error, the ` Promise ` is rejected with an [ ` Error ` ] [ ] object, where ` err.code `
10391039is one of the [ DNS error codes] ( #dns_error_codes ) .
10401040
1041- ### dnsPromises.setServers(servers)
1041+ ### ` dnsPromises.setServers(servers) `
10421042<!-- YAML
10431043added: v10.6.0
10441044-->
0 commit comments