How to set a custom DNS resolver for axios

Viewed 3687

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?

0 Answers
Related