pub fn srv_mapper(host: &String) -> Result<RR, String> {
    let q = query_srv(host);
    if q.is_err() {
        return Err("srv lookup failed".to_string());
    }
    srv_chooser(q.unwrap())
}
// srv_mapper queries for SRV records and chooses
// one of the possible results based on the SRV
// priority and weight.
srv_mapper queries for SRV records and chooses
one of the possible results based on the SRV
priority and weight.
srv_mapper queries for SRV records and chooses one of the possible results based on the SRV priority and weight .
pub fn srv_mapper(host: &String) -> Result<RR, String> {
    let q = query_srv(host);
    if q.is_err() {
        return Err("srv lookup failed".to_string());
    }
    srv_chooser(q.unwrap())
}
pub fn srv_mapper ( host : & String ) -> Result < RR , String > { let q = query_srv ( host ) ; if q . is_err ( ) { return Err ( " " . to_string ( ) ) ; } srv_chooser ( q . unwrap ( ) ) }
srv_mapper queries for SRV records and chooses
one of the possible results based on the SRV
priority and weight.
srv_mapper queries for SRV records and chooses one of the possible results based on the SRV priority and weight .
host
&String
host
&String