Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Looking for an open source Java whois parser [closed]

I am trying to parse whois lookups in a java based whois server and looking to use a preexisting solution.

Please note: I am not looking to parse whois data or query any server.

I have looked into commons-cli and JavaCC the later is promising but the idea of generated code is not attractive. My ideal solution would be a parser able to load the grammar at runtime through a file.

Example inputs I would like to parse:

domain example.com
host id 3223
summary registrar id 2332

Thanks!

like image 905
Stratos Avatar asked Jan 19 '12 14:01

Stratos


2 Answers

There's no WHOIS parser written in Java. The only parsers currently available are written in PHP and Ruby.

I'm the author of the Ruby WHOIS library. An intelligent Ruby WHOIS client and parser.

The good news for you is that Ruby WHOIS is fully compatible with JRuby. It means you can use it in your Java environment as long as you use JRuby.

like image 55
Simone Carletti Avatar answered Nov 08 '22 21:11

Simone Carletti


Apache Commons Net supports multiple protocols and whois one of them.

like image 41
Aravind Yarram Avatar answered Nov 08 '22 19:11

Aravind Yarram