Skip to content

A DNS resolver for rotor

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

tailhook/rotor-dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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.

About

A DNS resolver for rotor

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages