pub fn new() -> Resolver<UdpClient> {
        let servers = crate::clients::udp::GOOGLE
            .iter()
            .flat_map(|a| a.to_socket_addrs())
            .flatten()
            .collect::<Vec<SocketAddr>>();

        let client = UdpClient::new(&servers[..]).unwrap(); // TODO Fix this
        Resolver::new_with_client(client)
    }
/// Creates a new Resolver using the system's default DNS server.
Creates a new Resolver using the system's default DNS server.
Creates a new Resolver using the system ' s default DNS server .
pub fn new() -> Resolver<UdpClient> {
        let servers = crate::clients::udp::GOOGLE
            .iter()
            .flat_map(|a| a.to_socket_addrs())
            .flatten()
            .collect::<Vec<SocketAddr>>();
        let client = UdpClient::new(&servers[..]).unwrap(); // TODO Fix this
        Resolver::new_with_client(client)
    }
pub fn new ( ) -> Resolver < UdpClient > { let servers = crate :: clients :: udp :: GOOGLE . iter ( ) . flat_map ( | a | a . to_socket_addrs ( ) ) . flatten ( ) . collect :: < Vec < SocketAddr > > ( ) ; let client = UdpClient :: new ( & servers [ .. ] ) . unwrap ( ) ; // TODO Fix this Resolver :: new_with_client ( client ) }
Creates a new Resolver using the system's default DNS server.
Creates a new Resolver using the system ' s default DNS server .