The DNS lookup method uses a web address for its parameter and returns the IPv4 or IPv6 record, correspondingly.
There are other parameters such as the options that are used to set the input as an integer or an object. If nothing is provided here, both IPv4 and IPv6 are considered. The third parameter is for the callback function.
The syntax is:
dns.lookup(address, options, callback)