[sr-dev] git:5.1:538ac2c5: core: make dns name to IP conversion more robust for IPv4 and IPv6