|
|
|
|
|
|
|
[![Project Status: Active – The project has reached a stable, usable
|
|
|
|
state and is being actively
|
|
|
|
developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
|
|
|
|
[![Signed
|
|
|
|
by](https://img.shields.io/badge/Keybase-Verified-brightgreen.svg)](https://keybase.io/hrbrmstr)
|
|
|
|
![Signed commit
|
|
|
|
%](https://img.shields.io/badge/Signed_Commits-100%25-lightgrey.svg)
|
|
|
|
[![Linux build
|
|
|
|
Status](https://travis-ci.org/hrbrmstr/caa.svg?branch=master)](https://travis-ci.org/hrbrmstr/caa)
|
|
|
|
![Minimal R
|
|
|
|
Version](https://img.shields.io/badge/R%3E%3D-3.2.0-blue.svg)
|
|
|
|
![License](https://img.shields.io/badge/License-MIT-blue.svg)
|
|
|
|
|
|
|
|
# caa
|
|
|
|
|
|
|
|
R Wrapper for the Go dnscaa Library
|
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
|
|
Experimental R wrapper for the Go dnscall library. Builds off of work
|
|
|
|
done by Romain Francois (<https://github.com/rstats-go>).
|
|
|
|
|
|
|
|
## What’s Inside The Tin
|
|
|
|
|
|
|
|
The following functions are implemented:
|
|
|
|
|
|
|
|
- `caa_dig`: Retrieve the CAA record values for a domain (if any)
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
``` r
|
|
|
|
remotes::install_git("https://git.rud.is/hrbrmstr/caa.git")
|
|
|
|
# or
|
|
|
|
remotes::install_gitlab("hrbrmstr/caa")
|
|
|
|
# or
|
|
|
|
remotes::install_github("hrbrmstr/caa")
|
|
|
|
```
|
|
|
|
|
|
|
|
NOTE: To use the ‘remotes’ install options you will need to have the
|
|
|
|
[{remotes} package](https://github.com/r-lib/remotes) installed.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
``` r
|
|
|
|
library(caa)
|
|
|
|
|
|
|
|
# current version
|
|
|
|
packageVersion("caa")
|
|
|
|
## [1] '0.1.0'
|
|
|
|
```
|
|
|
|
|
|
|
|
``` r
|
|
|
|
# one record
|
|
|
|
caa_dig("google.com")
|
|
|
|
## # A tibble: 1 x 2
|
|
|
|
## tag value
|
|
|
|
## <chr> <chr>
|
|
|
|
## 1 issue pki.goog
|
|
|
|
|
|
|
|
# multiple
|
|
|
|
caa_dig("www.comodo.com")
|
|
|
|
## # A tibble: 3 x 2
|
|
|
|
## tag value
|
|
|
|
## <chr> <chr>
|
|
|
|
## 1 issue digicert.com
|
|
|
|
## 2 iodef mailto:sslabuse@comodoca.com
|
|
|
|
## 3 issue comodoca.com
|
|
|
|
|
|
|
|
# none (lookup error)
|
|
|
|
caa_dig("www.comodo.comm")
|
|
|
|
## # A tibble: 0 x 2
|
|
|
|
## # … with 2 variables: tag <chr>, value <chr>
|
|
|
|
```
|
|
|
|
|
|
|
|
## caa Metrics
|
|
|
|
|
|
|
|
| Lang | \# Files | (%) | LoC | (%) | Blank lines | (%) | \# Lines | (%) |
|
|
|
|
| :----------------- | -------: | ---: | -----: | ---: | ----------: | ---: | -------: | ---: |
|
|
|
|
| Go | 1293 | 0.92 | 374722 | 0.95 | 40522 | 0.95 | 39892 | 0.95 |
|
|
|
|
| Assembly | 69 | 0.05 | 10426 | 0.03 | 1258 | 0.03 | 1424 | 0.03 |
|
|
|
|
| XML | 1 | 0.00 | 4780 | 0.01 | 228 | 0.01 | 13 | 0.00 |
|
|
|
|
| HTML | 10 | 0.01 | 2214 | 0.01 | 441 | 0.01 | 16 | 0.00 |
|
|
|
|
| Bourne Shell | 5 | 0.00 | 798 | 0.00 | 113 | 0.00 | 429 | 0.01 |
|
|
|
|
| C | 6 | 0.00 | 351 | 0.00 | 111 | 0.00 | 80 | 0.00 |
|
|
|
|
| Dockerfile | 3 | 0.00 | 91 | 0.00 | 27 | 0.00 | 23 | 0.00 |
|
|
|
|
| Bourne Again Shell | 2 | 0.00 | 72 | 0.00 | 12 | 0.00 | 6 | 0.00 |
|
|
|
|
| C/C++ Header | 1 | 0.00 | 48 | 0.00 | 28 | 0.00 | 10 | 0.00 |
|
|
|
|
| YAML | 2 | 0.00 | 45 | 0.00 | 0 | 0.00 | 0 | 0.00 |
|
|
|
|
| make | 2 | 0.00 | 25 | 0.00 | 7 | 0.00 | 4 | 0.00 |
|
|
|
|
| R | 3 | 0.00 | 15 | 0.00 | 8 | 0.00 | 25 | 0.00 |
|
|
|
|
| Rmd | 1 | 0.00 | 11 | 0.00 | 18 | 0.00 | 33 | 0.00 |
|
|
|
|
|
|
|
|
## Code of Conduct
|
|
|
|
|
|
|
|
Please note that this project is released with a Contributor Code of
|
|
|
|
Conduct. By participating in this project you agree to abide by its
|
|
|
|
terms.
|