Git Product home page Git Product logo

caac's Introduction

CAAC - CAA record checker

This little tool lets you check / create a CAA Record for one domain or check several domains if a record exists. It creates records for following DNS:

  • Generic - For Google Cloud DNS, Route 53, DNSimple, and other hosted DNS services
  • Standard Zone File - For BIND ≥9.9.6, PowerDNS ≥4.0.0, NSD ≥4.0.1, Knot DNS ≥2.2.0
  • Legacy Zone File (RFC 3597 Syntax) - For BIND <9.9.6, NSD <4.0.1, Windows Server 2016
  • dnsmasq

Getting Started

Clone the repo with

git clone https://github.com/joelgun-xyz/caac.git

Prerequisites

This tool runs on Python3.

Installing

You need to install a couple of libs from the requirements.txt

PyYAML==5.1.2
dnspython==1.16.0
tqdm==4.31.1
Click==7.0
click-plugins==1.0.4
requests==2.22.0

Change in the cloned project directory and run following command to install them all:

pip3 install -r requirements.txt

Running the script

You can check for / create a CAA record with:

python3 caac.py -d example.com

You can check several domains for CAA records with:

python3 caac.py -bd example.com,example2.com,example.com

Output

Sample CAA check output:

[ +++ ] Found an entry for "raiffi.ch"!

raiffi.ch. 0 iodef "mailto:[email protected]" 
raiffi.ch. 0 issue "amazon.com" 
raiffi.ch. 0 issue "digicert.com" 
raiffi.ch. 0 issue "quovadisglobal.com" 

If there is no:

python3 caac.py -d vqb.ch

[ +++ ] There was no CAA Record!

Do you want to create one? [y/N]: 

Authors

License

This project is licensed under the Apache License - see the LICENSE.md file for details

Acknowledgments

  • CAA helper from SSLMate

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.