Skip to content

davidegaspar/dns-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Test your DNS with Jest

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors