Code Monkey home page Code Monkey logo

Comments (5)

bluejekyll avatar bluejekyll commented on July 18, 2024

yes, this would be a nice feature to add. I think it's also related to #1924, as this could be used in the forwarding hickory-dns server.

To make this accurate it would probably mean recording some stats on each RRSet and it's use in the cache, which I don't think we do today. That said, I think randomizing the order of the addresses is also something that the calling code can do. I've always been a little uncomfortable with changing RRSets from what was returned upstream, but I'm not a purest on this.

If you wanted to post something up, maybe even keeping it simple for now by just randomizing the order of the records in the result from the cache, that would be interesting to see.

from trust-dns.

TSDevHub avatar TSDevHub commented on July 18, 2024

Hey Benjamin, thanks for your reply :)

Ah I didn't know hickory also provided DNS server capability, I was just using it as a resolver to call DNS server.

I think having a feature where you select a random record in the DNS cache if cache item has multiple records sounds like a great start. Perhaps hickory-resolver users would find that this is good enough for their use-case with short enough TTL. And later we can add round robin.

I am new to this repo and wonder how features are prioritized and released, what is next?

from trust-dns.

bluejekyll avatar bluejekyll commented on July 18, 2024

we basically include things as they're ready and then publish in the next release. We're working on a new 0.25 release that will probably come once we have all of the related crates that use ring and rustls updated. So that will come as soon as some of our dependencies are updated.

from trust-dns.

bluejekyll avatar bluejekyll commented on July 18, 2024

Something to consider when implementing this, perhaps it could be included only in the RRSet returned by the lookup function... i.e. that way it would make it something like lookup_ip(...).await?.randomized().next()

from trust-dns.

TSDevHub avatar TSDevHub commented on July 18, 2024

I see, then I will keep an eye on this feature request. Thanks again!

from trust-dns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.