For a lookup program, best one is a python package: pythonwhois
Commands on Ubuntu Linux:
-----------------------------------------------
apt-get install python python-pip
pip install pythonwhois
-----------------------------------------------
Read here: cryto.net/pythonwhois