I\'m trying to use dns.lookup to check if a URL is valid (whether it\'s entered as apple.com, www.apple.com, or http://www.apple.com)
apple.com
www.apple.com
http://www.apple.com