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: nodejs#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 Medhansh404 committed Jan 19, 2024
1 parent 6257dc6 commit 9b40b22
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 9b40b22

Please sign in to comment.