dnsproxy: Check the result of socket creation when resolving