DNS resolver rewritten, moved to proto/dns.c