Code Monkey home page Code Monkey logo

Comments (5)

szmarczak avatar szmarczak commented on September 3, 2024

What's the use case? Why not set up your own DNS server then?

from cacheable-lookup.

ITzhangxi avatar ITzhangxi commented on September 3, 2024

Hi, I'm glad you can reply to me, thank you.
I have built a local DNS service here, which is mainly used for the development of mobile H5 projects on the computer side, and the mobile terminal accesses the project through the domain name in the local area network.
The DNS service I built locally uses the lookup function in the dns module, so I want to use your cacheable-lookup to do a layer of performance optimization, but I found that your cacheable-lookup first obtains the remote IP and then obtains the IP from the local hosts.
I want to get the IP from the local hosts first, and then get the IP from the remote

from cacheable-lookup.

szmarczak avatar szmarczak commented on September 3, 2024

The DNS service I built locally uses the lookup function in the dns module,

Why lookup and not actual DNS queries?

so I want to use your cacheable-lookup to do a layer of performance optimization

If you're explicitly relying on lookup in the OS, then I don't think using cacheable-lookup is a good idea. This was written with TTL in mind.

from cacheable-lookup.

ITzhangxi avatar ITzhangxi commented on September 3, 2024

That's a good idea. Thank you

from cacheable-lookup.

ITzhangxi avatar ITzhangxi commented on September 3, 2024

Thank you for your patience. Thank you

from cacheable-lookup.

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.