Added alternative way to fetch info

added gethostbyname as a "first test", if it fails it will fall back to
querying the whois servers, this will help reduce requests
Bugfixes

fixed bugs i created in the last commit, code is now considered usable
and working. :)