diff --git a/doc/api/dns.md b/doc/api/dns.md index 40f830a3c8e5d8..5a605751249ae4 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -15,8 +15,8 @@ For example, looking up `iana.org`. ```js const dns = require('dns'); -dns.lookup('iana.org', (err, addresses, family) => { - console.log('addresses:', addresses); +dns.lookup('iana.org', (err, address, family) => { + console.log('address:', address); }); ```