From caf71e05a60bba7597e10fb00a1034b5f16c8776 Mon Sep 17 00:00:00 2001 From: Aras Abbasi Date: Sun, 7 Jan 2024 09:32:17 +0100 Subject: [PATCH] net: fix example IPv4 in dns docs PR-URL: https://github.com/nodejs/node/pull/51377 Reviewed-By: Matteo Collina Reviewed-By: Luigi Pinca Reviewed-By: Paolo Insogna --- doc/api/dns.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/api/dns.md b/doc/api/dns.md index d04dbd4a3768ef..d6209fa19ef628 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -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', ]); ```