Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): fix IPv4 in dns.setServers and dns.getServers #51377

Merged
merged 1 commit into from
Jan 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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