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
Takeover provider list is compiled in; allow extending it from a file #219
The takeover-prone provider list is compiled into the binary, so every new fingerprint needs a code change and a release (#134, #214). Users who track their own providers, or who want to drop a provider that is noisy for them, can't. A -takeover-providers <file> flag would let them extend or replace the list without waiting for a release.
Merge mode:-takeover-providers <file> adds <suffix> <name> pairs to the built-in list. An entry for a suffix that is already listed replaces it, a name of - removes the suffix, and the longest matching suffix wins.
Replace mode:-takeover-providers-only uses the file alone.
A bad line is a usage error (exit 2) that names the line number.
The list now reaches the takeover cache through scan.Config instead of a package global.
pkg/subenum gains Config.TakeoverProviders and Config.TakeoverProvidersOnly.
The config-file key, the SUBENUM_TAKEOVER_PROVIDERS env var and -print-config all work through the existing generic flag handling.
Verified with TestParseTakeoverProviders (merge, replace, remove, IDN, longest match, line-numbered errors), TestScanTakeoverProviders (library) and TestE2ETakeoverProviders (CLI, local test DNS server). Also ran the full go test ./..., -race on the touched packages, and golangci-lint run (0 issues).
Activity
TMHSDigital commentedon Nov 11, 2026
Fixed in 06aa15b.
-takeover-providers <file>adds<suffix> <name>pairs to the built-in list. An entry for a suffix that is already listed replaces it, a name of-removes the suffix, and the longest matching suffix wins.-takeover-providers-onlyuses the file alone.scan.Configinstead of a package global.pkg/subenumgainsConfig.TakeoverProvidersandConfig.TakeoverProvidersOnly.SUBENUM_TAKEOVER_PROVIDERSenv var and-print-configall work through the existing generic flag handling.Verified with
TestParseTakeoverProviders(merge, replace, remove, IDN, longest match, line-numbered errors),TestScanTakeoverProviders(library) andTestE2ETakeoverProviders(CLI, local test DNS server). Also ran the fullgo test ./...,-raceon the touched packages, andgolangci-lint run(0 issues).feat(dns): load extra takeover providers from a file (TMHSDigital#219)