Fix for DNS::ResolveIP. Correct handling of FQDN.

See bnc#813232. Already in SP2