1.0.1 • Published 3 years ago
dns-testing v1.0.1
DNS Testing
Test your live DNS with Jest.
Small preconfigured DNS resolver to be used with Jest.
Features
- 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.
Install
npm install --save-dev jest dns-testing
Options
DNS Servers
export PUBLIC_DNS_SERVER_IP=*.*.*.* # optional
export PRIVATE_DNS_SERVER_IP=*.*.*.* # your private DNS
npm run test
Concurrency via Jest
Overflowing DNS servers with requests can cause random test failures, a concurrency of 2 to 5 is recomended.
module.exports = {
verbose: true,
maxConcurrency: 2,
};
Future
- retry mechanism