CLI utility for SPF, DMARC, TLS-RPT, and MTA-STS DNS lookups against a configurable resolver.
- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
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. |
||
| .forgejo/workflows | ||
| cmd/cli-test-dns | ||
| docs | ||
| .gitignore | ||
| catalog-info.yaml | ||
| domains.txt | ||
| go.mod | ||
| go.sum | ||
| README.md | ||
| renovate.json | ||
cli-test-dns
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>