You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1793b6b
Browse filesBrowse the repository at this point in the historyBrowse files
Make DNS tests hermetic and pin the 0.7.0 release path.
Public-resolver tests now hit an in-process UDP/TCP responder; live smoke is gated on SUBENUM_NETWORK_TESTS=1. Version is a ldflags-injected var, -version writes stdout, go.mod is 1.24, golangci-lint-action and distroless images are pinned, and releases attest provenance. Domain validation gained the 63-character label limit and xn-- TLDs rather than dropping the RFC-compliant README claim.
Co-authored-by: Cursor <cursoragent@cursor.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
## [0.7.0] - 2026-09-16
11
+
10
12
### Added
11
13
- Scan outcome accounting: each query is classified as found, nxdomain, timeout, refused, or other. The breakdown is printed after every scan (stderr) and carried on `EventDone.Stats` for the TUI summary line.
12
14
- Reliability guard: once 200 queries have completed, if more than 20% failed as timeout/refused/other the scan emits an error naming the failure rate and likely resolver rate-limiting at the configured `-t` and `-rate`, then aborts. `-no-abort` keeps the warning but continues the scan.
13
15
- TUI record-type selection (`-type` parity): a Record Types form field, persisted to the session config and wired into the scan.
14
16
- TUI recursive enumeration (`-recursive`/`-depth` parity): a Recursive toggle with a Depth field gated on it, persisted across sessions.
15
17
- TUI rate limiting (`-rate` parity): a queries-per-second form field, persisted across sessions.
16
18
- TUI output file support (`-o`/`-format` parity): results can be written to a file as `text`, `json`, or `csv`. The format applies only to the file; the live viewport stays human-readable. Backed by a new file-only `output.NewFile` writer so structured output never collides with the alt-screen.
19
+
- Release provenance attestations (`actions/attest-build-provenance`) on tagged builds.
17
20
18
21
### Changed
19
22
-`dns.ResolveDomainWithRetry` returns `([]Record, Outcome)` instead of `([]Record, bool)`, so callers can distinguish NXDOMAIN from infrastructure failure.
@@ -23,6 +26,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
23
26
-`-max-queries` caps admitted work. Recursive scans warn about the theoretical ceiling and refuse to start above 1e7 jobs unless `-max-queries` or `-force` is set. The dispatcher queue uses a head index with periodic compaction. Unreachable resolvers fail a preflight lookup before wildcard probes.
24
27
- CLI `EventError` handling now drains the event channel so a reliability abort still delivers `EventDone` with partial stats. Wildcard-without-`-force` still skips structured `Finish`.
25
28
- TUI form now validates domain syntax and DNS server `ip:port` format up front, matching the CLI. The validators were extracted into a shared `internal/validate` package used by both entry points (previously the form only checked for non-empty values).
29
+
-`validate.Domain` now enforces the 63-character per-label limit and accepts punycode TLDs (`xn--...`).
30
+
-`Version` is a `var` injected via `-ldflags "-X main.Version=$(git describe --tags --dirty)"`. `-version` writes to stdout.
31
+
-`go` directive is `1.24`. golangci-lint CI is pinned to v2.12.2. Docker final stage is distroless static nonroot, with builder and runtime images pinned by digest.
26
32
27
33
### Removed
28
34
- Removed the unused `dns.Resolve` function, superseded by `dns.ResolveTypes`.
@@ -39,6 +45,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
39
45
- GitHub Pages landing page (`docs/index.md`) refreshed to the 0.6.0 feature set, adding cards for Output Formats (`-format`), Rate Limiting (`-rate`), Record Types (`-type`), and Recursive Enumeration (`-recursive`/`-depth`).
40
46
- Normalized em dashes to hyphens across `docs/` for consistency with the no-em-dash convention.
41
47
- Documented outcome classification, `EventDone.Stats`, and the reliability guard in ARCHITECTURE.
48
+
- Corrected ARCHITECTURE output-format note (TUI file output shipped in P5) and DEVELOPER_GUIDE "CLI-only zero deps" claim.
42
49
43
50
### Tests
44
51
- Added TUI coverage: session-config round-trip, form navigation across gated fields, record-type and depth validation, and structured-output finalization on both the success and error paths.
@@ -49,6 +56,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
49
56
- Added a local UDP+TCP responder test proving truncated (TC=1) answers complete over TCP.
50
57
- Added wildcard fingerprint tests: matching answers are filtered, and recursive expansion of a wildcard branch is skipped.
51
58
- Added tests for `-max-queries` admission, the recursive ceiling refusal, and resolver preflight against a black-holed UDP listener.
59
+
- Replaced public-resolver tests with an in-process UDP/TCP responder. Live smoke is gated on `SUBENUM_NETWORK_TESTS=1`.
***Purpose**: Thread-safe output that keeps stdout pipe-clean. Resolved subdomains go to stdout; everything else (progress, verbose diagnostics, errors) goes to stderr.
102
102
***Implementation**:
103
103
*`output.Writer` struct with mutex-protected methods:
104
-
*`Result(domain, records)` - in `text` format prints `Found: <domain>` to stdout (and the output file if configured); in `json` format buffers `{"subdomain", "records"}` objects and writes a single array at completion; in `csv` format streams `subdomain,type,value` rows with a header. The format is selected with `-format text|json|csv` (default `text`, which is byte-for-byte identical to prior behavior). The JSON array is buffered because it is a single document and does not stream; JSONL would be the streaming-friendly alternative if needed. Output formats are CLI-only for now (TUI-pending).
104
+
*`Result(domain, records)` - in `text` format prints `Found: <domain>` to stdout (and the output file if configured); in `json` format buffers `{"subdomain", "records"}` objects and writes a single array at completion; in `csv` format streams `subdomain,type,value` rows with a header. The format is selected with `-format text|json|csv` (default `text`, which is byte-for-byte identical to prior behavior). The JSON array is buffered because it is a single document and does not stream; JSONL would be the streaming-friendly alternative if needed. The TUI uses `output.NewFile` for the optional result file; the live viewport stays human-readable text.
105
105
*`Progress(pct, processed, total, found)` - writes a carriage-return progress line to stderr.
106
106
*`Info(format, args...)` - writes an informational line to stderr.
107
107
*`Error(format, args...)` - writes an error line to stderr.
@@ -267,9 +276,8 @@ The following capabilities are implemented and available today:
267
276
268
277
## Future Development
269
278
270
-
Areas for potential enhancement include:
279
+
See `docs/ROADMAP.md` for the next-pass list. Areas still open:
271
280
272
-
* **TUI parity**: surface the remaining CLI options (`-type`, `-recursive`/`-depth`, `-rate`, and structured file output) in the interactive form. See `docs/ROADMAP.md`.
273
281
* **Additional record types**: extend `dns.ResolveTypes` beyond A/AAAA/CNAME (for example MX, TXT, NS).
274
282
* **Streaming JSON output**: a JSONL mode for live structured output that, unlike the buffered JSON array, can be piped incrementally.
0 commit comments