Added some comments to the dnsLookup method