Better version, with proper support for both JRuby (java-based DNS retrieval), MRI and ipconfig-screenscraping.