pwhois ====== `pwhois` is a small command-line utility that takes advantage of the [Ruby Whois][whois] module to parse Whois results and display them in a coherent style. From their [Parsers][parsers] page: > I know what you are thinking and the record is yes: in order to support > all existing WHOIS servers and registrars, the Whois library should > provide more than 500 different parsers. And this is exactly one of the > major development goal. This utility will not give you the full, parsed output of a whois query (yet). It appears that the [Ruby Whois][whois] module supports only a subset of possible returned properties. See the gem's [Properties][properties] page for the list of supported properties. *(This was a simple project to help me learn a little bit about Ruby. If you're a Ruby guru, please don't look too closely at the code. Or if you do, let me know where I could do things better. Thanks!)* # Usage $ ./pwhois -h Usage: pwhois [options] Specific options: -v, --[no-]verbose Run verbosely -o, --output TYPE Output style. One of: csv, tsv, table, list -a, --attributes x,y,z Attributes to return. -h, --help Show this message # Output Styles ## CSV (Comma-Separated Values) $ ./pwhois -o csv github.com Domain,Created On,Updated On,Registrar Name github.com,2013-06-14 19:07:02 -0400,2013-11-27 07:00:15 -0500,"MarkMonitor, Inc." ## TSV (Tab-Separated Values) $ ./pwhois -o tsv github.com Domain Created On Updated On Registrar Name github.com 2013-06-14 19:07:02 -0400 2013-11-27 07:00:15 -0500 MarkMonitor, Inc. ## List (Default Style) $ ./pwhois -o list github.com Domain : github.com Created On : 2013-06-14 19:07:02 -0400 Updated On : 2013-11-27 07:00:15 -0500 Registrar Name: MarkMonitor, Inc. ## Table $ ./pwhois -o table github.com Domain Created On Updated On Registrar Name ---------- ------------------------- ------------------------- ----------------- github.com 2013-06-14 19:07:02 -0400 2013-11-27 07:00:15 -0500 MarkMonitor, Inc. # Multiple Queries You can give `pwhois` a list of domains and it will return the results in a format useful to the style. ## CSV/TSV style The header line is printed only once: $ ./pwhois -o csv $(