Porting from Ruby Whois