I went through a bunch of different whois parsers trying to find the most accurate. Many of them weren’t able to correctly parse the new TLDs. But one python project seemed to do the best. Pythonwhois was the best one that I tested. I believe I tried out about 6 of the top projects I could find. I also looked at the whois API services out there but found them to be too pricey. I was mainly looking to manage expiration dates of a large domain portfolio. Pythonwhois also comes with a nice command line program which emits json, which was nice since I didn’t want to use python in my project.
Install on Ubuntu
apt-get install pip
pip install pythonwhois
Run Whois on netflix.com into json array
/usr/local/bin/pwhois --json netflix.com