mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
net: fix example IPv4 in dns docs
PR-URL: https://github.com/nodejs/node/pull/51377 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it>
This commit is contained in:
1 parent
4372f6a5b8
commit
caf71e05a6
1 file changed
+8
-8
+8
-8
@@ -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',
|
||||
]
|
||||
```
|
||||
@@ -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',
|
||||
]);
|
||||
```
|
||||
@@ -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',
|
||||
]
|
||||
```
|
||||
@@ -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',
|
||||
]);
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user