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