pub fn set_dns_resolver(&mut self, resolver: Arc<DnsResolver>) {
        self.dns_resolver = resolver;
    }
Set a DNS resolver

The resolver should be wrapped in an `Arc`, because it could be shared with the other servers
crates/shadowsocks/src/context.rs