farai 0.3.9 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +7 -7
- package/dist/cli/index.js.map +3 -3
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -9266,8 +9266,8 @@ var init_renderers = __esm(() => {
|
|
|
9266
9266
|
|
|
9267
9267
|
// src/version.ts
|
|
9268
9268
|
function resolveFaraiVersion() {
|
|
9269
|
-
if ("0.
|
|
9270
|
-
return "0.
|
|
9269
|
+
if ("0.4.0")
|
|
9270
|
+
return "0.4.0";
|
|
9271
9271
|
try {
|
|
9272
9272
|
const parsed = JSON.parse(readBoundedFileTextSync(new URL("../package.json", import.meta.url), 1024 * 1024, "package metadata"));
|
|
9273
9273
|
if (typeof parsed.version === "string" && parsed.version)
|
|
@@ -15653,8 +15653,8 @@ function buildDnsProbeCommand(args) {
|
|
|
15653
15653
|
const resolvers = optionalStringList(args.resolvers, "resolvers", 100);
|
|
15654
15654
|
const queries = names.flatMap((name) => recordTypes.map((type) => `${name} ${type.toUpperCase()}`));
|
|
15655
15655
|
const queryLines = queries.map(shellQuote3).join(" ");
|
|
15656
|
-
const fixed = ["dig", "+noall", "+answer", "+nocomments", "+tries=
|
|
15657
|
-
const server =
|
|
15656
|
+
const fixed = ["dig", "+noall", "+answer", "+nocomments", "+tries=2", `+time=${timeout}`].join(" ");
|
|
15657
|
+
const server = ` ${shellQuote3(`@${resolvers[0] ?? "1.1.1.1"}`)}`;
|
|
15658
15658
|
return ['file="$(mktemp /tmp/farai-dig.XXXXXX)" || exit 1', `trap 'rm -f "$file"' EXIT`, `printf '%s\\n' ${queryLines} > "$file"`, `${fixed}${server} -f "$file"`].join(`
|
|
15659
15659
|
`);
|
|
15660
15660
|
}
|
|
@@ -15703,7 +15703,7 @@ var init_dns_probe = __esm(() => {
|
|
|
15703
15703
|
DNS_RECORD_TYPES = ["a", "aaaa", "cname", "ns", "txt", "srv", "ptr", "mx", "soa", "caa"];
|
|
15704
15704
|
dnsProbeTool = {
|
|
15705
15705
|
name: "dns_resolve",
|
|
15706
|
-
description: "Resolve one or many hostnames with dig using selected DNS record types
|
|
15706
|
+
description: "Resolve one or many hostnames with dig using selected DNS record types. Queries the public resolver 1.1.1.1 by default (the container's own resolver is unreliable); pass resolvers to override for internal names. Returns answer records grouped by name (following CNAME targets as their own entries). Use this to validate candidates from asset_subdomains before HTTP or port probing; it is not a passive discovery source.",
|
|
15707
15707
|
inputSchema: {
|
|
15708
15708
|
type: "object",
|
|
15709
15709
|
required: ["names"],
|
|
@@ -15741,7 +15741,7 @@ var init_dns_probe = __esm(() => {
|
|
|
15741
15741
|
maxItems: 100,
|
|
15742
15742
|
uniqueItems: true
|
|
15743
15743
|
}],
|
|
15744
|
-
description: "optional custom resolver; the
|
|
15744
|
+
description: "optional custom resolver passed to dig as @resolver; defaults to the public resolver 1.1.1.1 because the container's default resolver is unreliable. set an internal resolver here for internal-only names"
|
|
15745
15745
|
},
|
|
15746
15746
|
timeoutSeconds: {
|
|
15747
15747
|
type: "integer",
|
|
@@ -81459,5 +81459,5 @@ Examples:
|
|
|
81459
81459
|
`);
|
|
81460
81460
|
}
|
|
81461
81461
|
|
|
81462
|
-
//# debugId=
|
|
81462
|
+
//# debugId=CEA52C50ECFD6CB064756E2164756E21
|
|
81463
81463
|
//# sourceMappingURL=index.js.map
|