Added DNS resolution for destination socket (fixes #7).