78trust / 100

Dns Spf Flatten

by spf-flatten in Email & messaging

x402 APIPassing, checked 35 min ago

SPF flattener: recursively expands a domain's SPF includes and redirects into the final list of authorised IPv4/IPv6 ranges and returns a flattened record. Fix the 10-lookup limit or audit exactly which networks may send mail as the domain. $0.01 per domain.

POST https://intel.rallylive.ca/dns/spf-flatten

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
47 ms typical, 476 ms slowest 5%
Last check
35 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://intel.rallylive.ca/dns/spf-flatten" \
  -H "content-type: application/json" \
  -d '{"domain":"github.com"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fintel.rallylive.ca%2Fdns%2Fspf-flatten
const res = await pay("https://intel.rallylive.ca/dns/spf-flatten", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"domain":"github.com"}),
});
console.log(await res.json());

Example input

{
  "domain": "github.com"
}

Example output

{
  "all": "~all",
  "domain": "github.com",
  "flattened_record": "v=spf1 ip4:192.30.252.0/22 ... ~all",
  "includes_expanded": 9,
  "ip4": [
    "192.30.252.0/22",
    "..."
  ],
  "ip6": [],
  "length": 420
}

Security scan

  • Payment address changed recently in payment
    Payment address changed from 0x91D568599fB802Cb3f03F067D2063785dBAF0abd to 0xFC24FD34da9e49A0110DCaEe3Ad30eC54175eBB3

Recent checks

WhenResultHTTPTimePrice
35 min agoPassed40242 ms$0.01
5 h agoPassed40244 ms$0.01
8 h agoPassed402204 ms$0.01
12 h agoPassed40247 ms$0.01
16 h agoPassed40242 ms$0.01
19 h agoPassed402476 ms$0.01
24 h agoPassed402534 ms$0.01

History

11 Oct 2026Payment address changed from 0x91D568599fB802Cb3f03F067D2063785dBAF0abd to 0xFC24FD34da9e49A0110DCaEe3Ad30eC54175eBB3