Test your live DNS with Jest.
Small preconfigured DNS resolver to be used with Jest.
- Express the DNS functionality without the DNS protocol limitations.
- Always pings the public/private server, it does not use the local cache.
- Examples that cover most use cases.
npm install --save-dev jest dns-testingexport PUBLIC_DNS_SERVER_IP=*.*.*.* # optional
export PRIVATE_DNS_SERVER_IP=*.*.*.* # your private DNS
npm run testOverflowing DNS servers with requests can cause random test failures, a concurrency of 2 to 5 is recomended.
module.exports = {
verbose: true,
maxConcurrency: 2,
};- retry mechanism