on-internet
← Community

How to set a custom DNS resolver for axios

Stack Overflow ·

axios uses http.request in NodeJs which has an option (lookup) for a custom lookup function. Its default value is dns.lookup. However, we want to use another dns resolver which has the cache ability. How can I set lookup when using axios?

Comments

Sign in or sign up to comment and upvote.

No comments yet.