Like japhy said earlier, Net::Whois::Domain doesn't takes a domain name and not an IP address. It hopefully returns info about who registered the domain, a bit like searching for it at this url (with the button set to 'Domain Name'). What are you trying to do?