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 targos committed Feb 15, 2024
1 parent 83b3aa8 commit 63e0ceb
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 @@ -820,9 +820,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 @@ -937,9 +937,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 @@ -1389,9 +1389,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 63e0ceb

Please sign in to comment.