Porting from Ruby's Whois