whois command function