Fixed parsing getent output. bnc#813232.

Parsing stripped part of hostname in some cases. I've also added
a check of validity of parsed result.
Updated testsuite.
Updated changelog
Merge pull request #80 from mchf/bnc813232-ResolveIP

Fixed DNS::ResolveIP which sometimes stripped also a part of hostname