Converting DNS-based names to IPAddress moved into separate method.

Signed-off-by: Asysob <sturm@uni-trier.de>