Make check_solr work with Python 2.6

Also, make it use FQDN

Change-Id: Iaedc2d589f5096011f884db96bf0685a45403a6f