From 63e0ceb48f58a5dd5e5ec657e64ccf8d60647389 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 1a460598bcd5fb..b0ff62c2cd5d1b 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', ] ``` @@ -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', ]); ``` @@ -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', ] ``` @@ -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', ]); ```