Halfway through rewrite of major parts of socket_dns.cpp. Should still work, though (besides weird output)