Skip to content
CAI
Software that uses CAICheck a score

dnsimple/dns_erlang

67.9

Adequate · 15 November 2026

12.8k

lines of production code

Erlang

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Automated generation of JSON documentation and RFC support lists

Added two new Erlang scripts, \generate\_json\_docs.escript\ and \generate\_rfc\_list.escript\, to automate the creation of static documentation. The JSON docs script parses record definitions and encoding rules to produce a \JSON\_FORMAT.md\ file, while the RFC list script scans source files for RFC references to generate a \RFC\_LIST.md\ file, ensuring documentation stays synchronized with the codebase. Also in this area: 1 commit (0 fixes) modifying include, scripts; 2 commits (1 fix) modifying scripts; Support for HIP, ILNP, AMTRELAY, DRIP, SIG, and PX DNS record types; Updated RFC list with clarifications for DNS specification and DNSSEC.

scripts · low confidence · unverified

Introduce JSON encoding/decoding for DNS records

Users can now convert DNS messages and resource records to and from JSON maps using the new \dns\_json\ module. This adds \to\_map/1\ and \from\_map/1\ functions that handle standard record types (A, AAAA, MX, SVCB, etc.) as well as message structures, with a corresponding \JSON\_FORMAT.md\ documentation file describing the field mappings and encoding rules (e.g., IP addresses as strings, base64 for binary data). Also in this area: 5 commits (0 fixes) modifying src; 3 commits (1 fix) modifying src; 1 commit (0 fixes) modifying src; Support for HIP, ILNP, AMTRELAY, DRIP, SIG, and PX DNS record types; DNSSEC validation and zone parsing now strictly enforce RFC canonicalization and wire-format constraints; and 1 more.

src · low confidence · unverified

Removals

Removed priv/overview.edoc and priv/wire\_samples.txt

The project has removed the \priv/overview.edoc\ documentation source and the \priv/wire\_samples.txt\ test data file. These files are no longer included in the distribution, which may affect local documentation generation and the availability of pre-recorded DNS wire samples for testing.

priv · high confidence

Behavioural changes

DNS record type definitions and test suite refactored

The library has removed the \dns\_tests.hrl\ header, eliminating the embedded EUnit test cases that were previously included via this file. Additionally, the internal record definitions in \dns\_records.hrl\ and \dns\_terms.hrl\ have been updated to use numeric constants for DNS classes and types instead of atom representations, and the include paths for internal headers have been adjusted to use relative paths.

include · high confidence

Project tooling and documentation overhaul

The repository has been restructured to improve developer experience and CI reliability. The build system now mandates Erlang/OTP 27 and uses rebar3 exclusively, replacing the legacy rebar2 setup. Code formatting is enforced via erlfmt, and linting is handled by rebar3\_lint and markdownlint. Documentation generation is automated, with static JSON format docs and an auto-generated RFC support list. New configuration files (.markdownlint.yaml, .yamllint, AGENTS.md, CLAUDE.md) and updated documentation (README.md, CONTRIBUTING.md, CHANGELOG.md) standardize project guidelines and AI agent interactions.

(repo-wide) · high confidence

Test coverage

Migrate test suite to Common Test and add comprehensive coverage

The project has migrated its test infrastructure from eunit to the Erlang/OTP Common Test (ct) framework, introducing a suite of new test modules including dns\_SUITE, dns\_cookie\_SUITE, dns\_domain\_SUITE, dns\_ede\_SUITE, dns\_json\_SUITE, and dns\_names\_SUITE. These tests provide extensive coverage for DNS message encoding/decoding, EDNS COOKIE handling (RFC 7873), Extended DNS Errors (RFC 8914), JSON transcoding, domain name operations, and various record types such as SVCB, DNSSEC, and LOC.

test · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 68 → 68 (+0.3)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 68 → 74 (+5.3)
  • Architecture 98 → 98 (+0.2)
  • Maturity 60 → 60 (+0.7)
  • Readiness 70 → 70 (+0.0)
  • Security 81 → 71 (-9.7)
  • Event Sourcing 100 → 100 (+0.0)

Resolved (26)

  • Duplicated block (10 lines × 2) (src/dns_zone_decode.erl)
  • Duplicated block (10 lines × 3) (src/dns_zone_decode.erl)
  • Duplicated block (11 lines × 2) (src/dns_zone_decode.erl)
  • Duplicated block (12–14 lines × 4) (src/dns_zone_decode.erl)
  • Duplicated block (13–14 lines × 2) (src/dns_zone_decode.erl)
  • Duplicated block (13–14 lines × 2) (src/dns_zone_decode.erl)
  • Duplicated block (13–14 lines × 2) (src/dns_zone_decode.erl)
  • Duplicated block (14–15 lines × 2) (src/dns_zone_decode.erl)
  • Duplicated block (18 lines × 2) (src/dns_zone_decode.erl)
  • Duplicated block (22–25 lines × 2) (src/dns_zone_decode.erl)
  • Duplicated block (23–24 lines × 2) (src/dns_zone_decode.erl)
  • Duplicated block (6 lines × 2) (src/dns_zone_decode.erl)
  • Duplicated block (6 lines × 2) (src/dns_zone_decode.erl)
  • Duplicated block (6 lines × 5) (src/dns_zone_decode.erl)
  • Duplicated block (7 lines × 2) (src/dns_zone_decode.erl)
  • Duplicated block (7 lines × 3) (src/dns_zone_decode.erl)
  • Duplicated block (7 lines × 7) (src/dns_zone_decode.erl)
  • FileTooLong: src/dns_svcb_params.erl (src/dns_svcb_params.erl)
  • FileTooLong: src/dnssec.erl (src/dnssec.erl)
  • Hotspot: src/dns_domain.erl (src/dns_domain.erl)
  • …and 6 more

New (20)

  • Duplicated block (10 lines × 2) (src/dns_check.erl)
  • Edited copies of one member (3 members, 5+ corresponding lines) (src/dns_domain.erl)
  • Edited copies of one member (3 members, 7+ corresponding lines) (src/dns_decode.erl)
  • Edited copy of a member (11 corresponding lines) (src/dns_domain.erl)
  • Edited copy of a member (12 corresponding lines) (src/dns_domain.erl)
  • Edited copy of a member (14 corresponding lines) (src/dns_zone_decode.erl)
  • Edited copy of a member (17 corresponding lines) (src/dns_decode.erl)
  • Edited copy of a member (19 corresponding lines) (src/dns_encode.erl)
  • Edited copy of a member (2 corresponding lines) (src/dns.erl)
  • Edited copy of a member (2 corresponding lines) (src/dns_check.erl)
  • Edited copy of a member (22 corresponding lines) (src/dns_encode.erl)
  • Edited copy of a member (39 corresponding lines) (src/dns_domain.erl)
  • Edited copy of a member (7 corresponding lines) (src/dns_domain.erl)
  • Edited copy of a member (7 corresponding lines) (src/dns_svcb_params.erl)
  • FileTooLong: src/dns_sec.erl (src/dns_sec.erl)
  • Hotspot: src/dns_check.erl (src/dns_check.erl)
  • Hotspot: src/dns_json.erl (src/dns_json.erl)
  • Off-boarding risk: anonymized user #1
  • dns_zone_decode.entries (cyclomatic 17) (src/dns_zone_decode.erl)
  • dns_zone_decode.name (cyclomatic 17) (src/dns_zone_decode.erl)

Changes since last survey

  • 25 commits — 24 feature/other, 1 fixes

By area

  • (root) — 22 commits
  • .github/workflows — 1 commit
  • src/dns_check.erl — 1 commit
  • test/dns_zone_prop.erl — 1 commit

Notable commits

  • fix: Name algorithms 1, 12, 17 and 23, and fix RSA/MD5 key tags (#175)
  • change: Add dns_sec:dnskey_public_key/2 to lay out a DNSKEY's key field (#183)
  • change: Encode DHCID, OPENPGPKEY and WALLET in class NONE, as they decode (#158)
  • change: Hold names, RDATA and type bitmaps to their wire limits (#173)
  • change: Keep DNSKEY public keys as their RDATA bytes (#184)
  • change: Leave RRSIG records unsigned (#176)
  • change: Leave fe80:1::-like addresses out of the zone round-trip properties (#161)
  • change: Parse zone files from binaries, and write zone text that reads back (#180)
  • change: Prepare version in changelog
  • change: Read split and unquoted hex and base64 in zone files (#155)
  • change: Refuse to sign records of more than one RRset as one (#177)
  • change: Rename dnssec to dns_sec (#182)
  • change: Return false for RRSIGs in algorithms dnssec does not implement (#165)
  • change: Share the DNSSEC algorithm guards and the DS and DNSKEY field checks (#181)
  • change: Sign and verify DNSSEC with ML-DSA-44 (algorithm 18) (#157)
  • change: Sign and verify DSA over the signed data, without its length in front (#160)
  • change: Sign and verify ECDSA over the signed data, not its hash (#159)
  • change: Sign and verify a record twice in an RRset once (#162)
  • change: Sign owners that differ only in a final dot as one RRset (#178)
  • change: Truncate rather than drop the OPT RR, and refuse strings over 255 octets (#174)
  • …and 5 more

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

dnsimple/dns_erlang was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 3fbe59a1c59ff6d216b93bfdd6e288739a6f0f45 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.