Skip to content

Commit

Permalink
net: fix example IPv4 in dns docs
Browse files Browse the repository at this point in the history
PR-URL: #51377
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
  • Loading branch information
Uzlopak authored and richardlau committed Mar 25, 2024
1 parent 4372f6a commit caf71e0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions doc/api/dns.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ section if a custom port is used.

```js
[
'4.4.4.4',
'8.8.8.8',
'2001:4860:4860::8888',
'4.4.4.4:1053',
'8.8.8.8:1053',
'[2001:4860:4860::8888]:1053',
]
```
Expand Down Expand Up @@ -818,9 +818,9 @@ addresses. If the port is the IANA default DNS port (53) it can be omitted.

```js
dns.setServers([
'4.4.4.4',
'8.8.8.8',
'[2001:4860:4860::8888]',
'4.4.4.4:1053',
'8.8.8.8:1053',
'[2001:4860:4860::8888]:1053',
]);
```
Expand Down Expand Up @@ -935,9 +935,9 @@ section if a custom port is used.

```js
[
'4.4.4.4',
'8.8.8.8',
'2001:4860:4860::8888',
'4.4.4.4:1053',
'8.8.8.8:1053',
'[2001:4860:4860::8888]:1053',
]
```
Expand Down Expand Up @@ -1385,9 +1385,9 @@ addresses. If the port is the IANA default DNS port (53) it can be omitted.

```js
dnsPromises.setServers([
'4.4.4.4',
'8.8.8.8',
'[2001:4860:4860::8888]',
'4.4.4.4:1053',
'8.8.8.8:1053',
'[2001:4860:4860::8888]:1053',
]);
```
Expand Down

0 comments on commit caf71e0

Please sign in to comment.