How to get the IP address of a Website in Node.js?
Originally posted here!
To get the IP address of a website we can use either the resolve4() function for IPv4 addresses or the resolve6() function for IPv6 addresses from the dns module in Node.js.
Let's say our website is google.com,
// website URL...
melvingeorge-me.hashnode.dev4 min read