rotor-dns

Crates.iorotor-dns
lib.rsrotor-dns
version0.4.0
sourcesrc
created_at2016-02-01 23:02:46.096435
updated_at2016-03-03 22:44:25.624104
description Asynchronous DNS resolver for rotor framework
homepagehttp://github.com/tailhook/rotor-dns
repository
max_upload_size
id4051
size41,823
Paul Colomiets (tailhook)

documentation

http://tailhook.github.com/rotor-dns/

README

========= Rotor DNS

A pure-rust asynchronous domain name system resolver library.

:Status: Pre-alpha :Documentation: http://tailhook.github.com/rotor-dns/

The library based on resolv-conf_ and dns-parser_ and mostly provides only asynchronous layer on top of rotor_.

The plan, is to implement good absractions:

  • Resolve SRV and fall back to regular host name
  • Subscribe to the domain name, not just resolve

The subscription should work as follows:

  1. Resolve name by normal means
  2. Sleep almost a TTL time (get some time to resolve)
  3. Re-resolve name
  4. Check if current connection is connected to one of the names resolved
  5. Reconnect if needed
  6. If new connection is successful drop the old one

The steps 4-6 above are obviously a protocol handler's job. But we should provide good abstractions to do that.

.. _resolv-conf: http://github.com/tailhook/resolv-conf .. _dns-parser: http://github.com/tailhook/dns-parser .. _rotor: http://github.com/tailhook/rotor

======= License

Licensed under either of


Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 0

cargo fmt