Git Product home page Git Product logo

tikaro-dns-tester's Introduction

Tikaro DNS Checker

This is a set of Jest tests for making sure that all domain records are present and accounted for.

How it Works

This script uses Node's DNS lookup functions: https://nodejs.org/api/dns.html

...looks up the records, and matches them to expected output.

This script doesn't do anything technologically exciting. What it does is makes it much easer to get through the interminable "is it propagated yet?" phase.

It also provides regression testing that you can run before messing with DNS records.

How to use it

In general, you'll use this repository to verify that you have correctly added a domain record to a zone file, and that you haven't broken anything.

  1. First, run tests to verify that there are no failures.
  2. Next, look for the test file matching the domain you are going to change
  3. Then, Add the new DNS record to the test (copy and paste a similar test. Refer to EXAMPLES.md for some samples.)
  4. Run tests and verify that the new record fails
  5. Make the actual DNS changes
  6. Run tests again until the failing test now passes.

You may need to wait up to a day for DNS changes to propagate, so you may need to re-run tests every so often.

Checking propagation progress

Here's a useful tool for checking the progress of DNS propagation. To check the propagation of an A record on example.com, try: https://www.whatsmydns.net/#A/example.com

To run tests

  1. Clone this repository
  2. Install: run yarn or npm install
  3. Test: run yarn test or yarn test

tikaro-dns-tester's People

Contributors

tikaro avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.