@@ -205,14 +205,12 @@ Returns an array of IP address strings, formatted according to [RFC 5952][],
205205that are currently configured for DNS resolution. A string will include a port
206206section if a custom port is used.
207207
208- <!-- eslint-disable @stylistic/js/semi-->
209-
210- ``` js
208+ ``` json
211209[
212- ' 8.8.8.8' ,
213- ' 2001:4860:4860::8888' ,
214- ' 8.8.8.8:1053' ,
215- ' [2001:4860:4860::8888]:1053' ,
210+ " 8.8.8.8" ,
211+ " 2001:4860:4860::8888" ,
212+ " 8.8.8.8:1053" ,
213+ " [2001:4860:4860::8888]:1053" ,
216214]
217215```
218216
@@ -559,8 +557,6 @@ will be present on the object:
559557
560558Here is an example of the ` ret ` object passed to the callback:
561559
562- <!-- eslint-disable @stylistic/js/semi -->
563-
564560``` js
565561[ { type: ' A' , address: ' 127.0.0.1' , ttl: 299 },
566562 { type: ' CNAME' , value: ' example.com' },
@@ -574,7 +570,7 @@ Here is an example of the `ret` object passed to the callback:
574570 refresh: 900 ,
575571 retry: 900 ,
576572 expire: 1800 ,
577- minttl: 60 } ]
573+ minttl: 60 } ];
578574```
579575
580576DNS server operators may choose not to respond to ` ANY `
@@ -678,17 +674,15 @@ function will contain an array of objects with the following properties:
678674* ` order `
679675* ` preference `
680676
681- <!-- eslint-skip -->
682-
683677``` js
684- {
678+ ( {
685679 flags: ' s' ,
686680 service: ' SIP+D2U' ,
687681 regexp: ' ' ,
688682 replacement: ' _sip._udp.example.com' ,
689683 order: 30 ,
690- preference: 100
691- }
684+ preference: 100 ,
685+ });
692686```
693687
694688## ` dns.resolveNs(hostname, callback) `
@@ -763,18 +757,16 @@ be an object with the following properties:
763757* ` expire `
764758* ` minttl `
765759
766- <!-- eslint-skip -->
767-
768760``` js
769- {
761+ ( {
770762 nsname: ' ns.example.com' ,
771763 hostmaster: ' root.example.com' ,
772764 serial: 2013101809 ,
773765 refresh: 10000 ,
774766 retry: 2400 ,
775767 expire: 604800 ,
776- minttl: 3600
777- }
768+ minttl: 3600 ,
769+ });
778770```
779771
780772## ` dns.resolveSrv(hostname, callback) `
@@ -803,15 +795,13 @@ be an array of objects with the following properties:
803795* ` port `
804796* ` name `
805797
806- <!-- eslint-skip -->
807-
808798``` js
809- {
799+ ( {
810800 priority: 10 ,
811801 weight: 5 ,
812802 port: 21223 ,
813- name: ' service.example.com'
814- }
803+ name: ' service.example.com' ,
804+ });
815805```
816806
817807## ` dns.resolveTlsa(hostname, callback) `
@@ -840,15 +830,13 @@ array of objects with these properties:
840830* ` match `
841831* ` data `
842832
843- <!-- eslint-skip -->
844-
845833``` js
846- {
834+ ( {
847835 certUsage: 3 ,
848836 selector: 1 ,
849837 match: 1 ,
850- data: [ArrayBuffer ]
851- }
838+ data: [ArrayBuffer ],
839+ });
852840```
853841
854842## ` dns.resolveTxt(hostname, callback) `
@@ -1081,14 +1069,12 @@ Returns an array of IP address strings, formatted according to [RFC 5952][],
10811069that are currently configured for DNS resolution. A string will include a port
10821070section if a custom port is used.
10831071
1084- <!-- eslint-disable @stylistic/js/semi-->
1085-
1086- ``` js
1072+ ``` json
10871073[
1088- ' 8.8.8.8' ,
1089- ' 2001:4860:4860::8888' ,
1090- ' 8.8.8.8:1053' ,
1091- ' [2001:4860:4860::8888]:1053' ,
1074+ " 8.8.8.8" ,
1075+ " 2001:4860:4860::8888" ,
1076+ " 8.8.8.8:1053" ,
1077+ " [2001:4860:4860::8888]:1053"
10921078]
10931079```
10941080
@@ -1329,8 +1315,6 @@ present on the object:
13291315
13301316Here is an example of the result object:
13311317
1332- <!-- eslint-disable @stylistic/js/semi -->
1333-
13341318``` js
13351319[ { type: ' A' , address: ' 127.0.0.1' , ttl: 299 },
13361320 { type: ' CNAME' , value: ' example.com' },
@@ -1344,7 +1328,7 @@ Here is an example of the result object:
13441328 refresh: 900 ,
13451329 retry: 900 ,
13461330 expire: 1800 ,
1347- minttl: 60 } ]
1331+ minttl: 60 } ];
13481332```
13491333
13501334### ` dnsPromises.resolveCaa(hostname) `
@@ -1407,17 +1391,15 @@ of objects with the following properties:
14071391* ` order `
14081392* ` preference `
14091393
1410- <!-- eslint-skip -->
1411-
14121394``` js
1413- {
1395+ ( {
14141396 flags: ' s' ,
14151397 service: ' SIP+D2U' ,
14161398 regexp: ' ' ,
14171399 replacement: ' _sip._udp.example.com' ,
14181400 order: 30 ,
1419- preference: 100
1420- }
1401+ preference: 100 ,
1402+ });
14211403```
14221404
14231405### ` dnsPromises.resolveNs(hostname) `
@@ -1465,18 +1447,16 @@ following properties:
14651447* ` expire `
14661448* ` minttl `
14671449
1468- <!-- eslint-skip -->
1469-
14701450``` js
1471- {
1451+ ( {
14721452 nsname: ' ns.example.com' ,
14731453 hostmaster: ' root.example.com' ,
14741454 serial: 2013101809 ,
14751455 refresh: 10000 ,
14761456 retry: 2400 ,
14771457 expire: 604800 ,
1478- minttl: 3600
1479- }
1458+ minttl: 3600 ,
1459+ });
14801460```
14811461
14821462### ` dnsPromises.resolveSrv(hostname) `
@@ -1496,15 +1476,13 @@ the following properties:
14961476* ` port `
14971477* ` name `
14981478
1499- <!-- eslint-skip -->
1500-
15011479``` js
1502- {
1480+ ( {
15031481 priority: 10 ,
15041482 weight: 5 ,
15051483 port: 21223 ,
1506- name: ' service.example.com'
1507- }
1484+ name: ' service.example.com' ,
1485+ });
15081486```
15091487
15101488### ` dnsPromises.resolveTlsa(hostname) `
@@ -1526,15 +1504,13 @@ with these properties:
15261504* ` match `
15271505* ` data `
15281506
1529- <!-- eslint-skip -->
1530-
15311507``` js
1532- {
1508+ ( {
15331509 certUsage: 3 ,
15341510 selector: 1 ,
15351511 match: 1 ,
1536- data: [ArrayBuffer ]
1537- }
1512+ data: [ArrayBuffer ],
1513+ });
15381514```
15391515
15401516### ` dnsPromises.resolveTxt(hostname) `
0 commit comments