CLI utility for SPF, DMARC, TLS-RPT, and MTA-STS DNS lookups against a configurable resolver.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nyaaan 4668d71d98
All checks were successful
Bump Tag on Main / bump-tag (push) Successful in 9s
Go lint / lint (push) Successful in 1m42s
fix: push tags via a credential-injected remote, not a reconstructed URL
GITHUB_SERVER_URL on this runner is an internal cluster address using
http:// (e.g. http://forgejo-http.forgejo.svc.cluster.local:3000), not
the public https:// hostname -- stripping only "https://" left it
untouched and produced "https://http://...". Instead of guessing at
scheme/host, read the remote URL checkout already resolved (proven to
work, since fetch/clone succeeded) and inject tag-bot credentials into
it directly. Also set persist-credentials: false on checkout so its
own token credentials cannot conflict with ours.
2026-08-28 04:26:38 +10:00
.forgejo/workflows fix: push tags via a credential-injected remote, not a reconstructed URL 2026-08-28 04:26:38 +10:00
cmd/cli-test-dns fix: check f.Close error when reading domains file 2026-08-28 02:54:20 +10:00
docs Add backstage 2026-05-18 20:11:58 +10:00
.gitignore Anchor the built-binary gitignore pattern to the repo root 2026-08-24 01:06:54 +10:00
catalog-info.yaml Add Backstage catalog metadata 2026-05-18 20:56:56 +10:00
domains.txt first commit 2026-05-10 02:07:48 +10:00
go.mod first commit 2026-05-10 02:07:48 +10:00
go.sum first commit 2026-05-10 02:07:48 +10:00
README.md docs: drop build-and-push badge, no longer built as a container 2026-08-28 02:56:03 +10:00
renovate.json refactor: extend shared Renovate preset instead of duplicating config 2026-08-28 04:02:59 +10:00

cli-test-dns

lint

A small CLI utility for DNS lookups against a configurable DNS server.

Features

  • Query a CSV list of domains
  • Lookup SPF, DMARC, TLS-RPT, and MTA-STS records
  • Set custom DNS server address
  • Output in table or CSV format

Build

cd cli-test-dns
go build ./cmd/cli-test-dns

Usage

# Single list of domains
./cli-test-dns -domains "example.com,kylecooper.me" -dns 127.0.0.1:53

# Load domains from CSV file
./cli-test-dns -file domains.csv -dns 127.0.0.1:53

# Output as CSV
./cli-test-dns -domains "example.com,kylecooper.me" -dns 127.0.0.1:53 -format csv

Supported lookups

  • SPF: TXT records on the domain root
  • DMARC: TXT record at _dmarc.<domain>
  • TLS-RPT: TXT record at _smtp._tls.<domain>
  • MTA-STS: TXT record at _mta-sts.<domain>