8 releases
Uses old Rust 2015
0.3.0 | Oct 9, 2018 |
---|---|
0.2.2 | Jul 25, 2018 |
0.1.3 | Aug 3, 2017 |
0.1.1 | Jun 21, 2017 |
#9 in #srv
11KB
176 lines
Hyper DNS Resolver
NetworkConnector to allow using a custom DNS server with SRV records in Hyper.
Below shows a quick example of how this library can be used (you will need to have SRV records setup for the domain to query):
extern crate hyper_dns;
extern crate hyper;
use std::net::ToSocketAddrs;
fn main() {
let dns_addr: std::net::SocketAddr = ("127.0.0.1", 8600).to_socket_addrs().unwrap().next().unwrap();
let client = hyper::client::Client::with_connector(
hyper_dns::DnsConnector::new(dns_addr, hyper::net::HttpConnector));
client.get("http://test.service.consul/").send();
}
lib.rs
:
DNS resolver for Hyper
Dependencies
~16MB
~300K SLoC