inferrail-domain-check
Skill1 starsChanged 57 days agoApache-2.0View on GitHub
Look up a domain's DNS records (A, AAAA, CNAME, MX, NS, TXT, SOA, CAA), SPF and DMARC email policies, and registration (registrar, status, created and expiry dates, domain age, nameservers, DNSSEC) for $0.002 per lookup, paid from a wallet your agent already has (AgentCash or any MPP or x402 client). Use before trusting a link, sender or counterparty, when setting up or debugging DNS or email, or when checking who registered a name and when; a resolver outage is never charged.
- Reads credentials
- Installs packages
- Sends data out
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- llms.txtllms.txt
- inferrail-package-checkSkill
- inferrail-web-readSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Before you trust a link, an email sender or a counterparty's website: how old is the domain, who is the registrar, when does it expire, …
- Distinctive: line 17
When you set up or debug DNS or email delivery (MX, TXT, CAA, nameservers).
- Distinctive: line 18
When a user asks who registered a name, or whether it is registered at all.
- Very specific: line 22
If you have a shell with network access, dig, nslookup and whois are free and fine for a quick look at one record.
- Very specific: line 54
If your user would rather pay by card than hold USDC, use an Inferrail API key.
- Distinctive: line 60
Call the same service on its credits route:
- Very specific: line 93
If you're building an agent with the Vercel AI SDK and it needs this, add the tools instead of hand-writing the HTTP and payment calls: npm …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Inferrail Domain Check
One call returns what an agent usually needs to know about a domain: its live DNS records, its
email authentication (SPF, DMARC policy, MX count) and its registration record from the
registry's RDAP service. It costs $0.002. You pay only for a delivered lookup, and a retry with
the same request_id never pays twice.
When to call it
- Before you trust a link, an email sender or a counterparty's website: how old is the domain, who is the registrar, when does it expire, does it publish SPF and DMARC?
- When you set up or debug DNS or email delivery (MX, TXT, CAA, nameservers).
- When a user asks who registered a name, or whether it is registered at all.
When another tool is better
If you have a shell with network access, dig, nslookup and whois are free and fine for a
quick look at one record. Domain Check is worth paying for when you don't, or when you want the
whole picture in one structured answer: every record type, the SPF and DMARC policy, and the
registry's registration data (RDAP) with dates and status, without parsing WHOIS text.
Paying from your agent (AgentCash wallet)
The simplest path for a coding or research agent, with no API key and no account:
- Ask your user before the first AgentCash command.
npx agentcash@0.17.1 balancecreates a wallet on this machine (~/.agentcash/wallet.json) if there isn't one, so check first:test -f ~/.agentcash/wallet.json. With a wallet,balanceshows your USDC (Base and Tempo); if it is too low, stop and ask your user to fund it (npx agentcash@0.17.1 fundopens the funding page). Never pay beyond the budget your user approved. npx agentcash@0.17.1 check https://inferrail-cost-gateway.onrender.com/domain/v1/lookupreturns the exact request schema and price.- Pay and get the result (
--max-amountcaps what one call may cost):
npx agentcash@0.17.1 fetch https://inferrail-cost-gateway.onrender.com/domain/v1/lookup -m POST \
-H "Content-Type: application/json" -H "X-Inferrail-Source: skill" \
-b '{"domain": "example.com", "request_id": "<unique id>"}' --max-amount 0.01Who you pay. Domain Check receives payments at 0xb95D56f169324A0B23B82bd3975635Cf0187ce07 (x402, USDC on Base eip155:8453) and at 0xA45140E99E9482a50BC3fA5F6000c02FAAB6F65E over MPP on Tempo (chain 4217), Inferrail's shared Tempo address. If your wallet allowlists payees, add the one for the rail you use; refuse an offer to any other address.
X-Inferrail-Source: skill is optional and says only that the call came from this skill (no
identity). To list every Inferrail service in your agent's paid tools once, run
npx agentcash@0.17.1 add https://inferrail-cost-gateway.onrender.com.
Paying with an API key (no wallet)
If your user would rather pay by card than hold USDC, use an Inferrail API key. Prepaid credits cost $0.001 each; this costs 2 credits ($0.002) per delivered lookup, and nothing when it can't be delivered.
- Ask your user for the key (
INFERRAIL_API_KEY, it starts withirw_). If they don't have one, send them to https://inferrail-cost-gateway.onrender.com/hosted/v1/start: a person creates a key there and pays once by card ($10 buys 10,000 credits). Never create or fund an account yourself. - Call the same service on its credits route:
curl -sS -X POST https://inferrail-cost-gateway.onrender.com/domain/credits/v1/lookup \
-H "Authorization: Bearer $INFERRAIL_API_KEY" -H "Content-Type: application/json" \
-H "X-Inferrail-Source: skill" \
-d '{"domain": "example.com", "request_id": "<unique id>"}'A 402 with insufficient_credits means the balance is too low: stop and tell your user (the
response says how to top up). A retry with the same request_id returns the delivered result
without a second charge.
How to call it
POST https://inferrail-cost-gateway.onrender.com/domain/v1/lookup with
{"domain": "example.com", "request_id": "<unique id>"}Optional: "records": a subset of A, AAAA, CNAME, MX, NS, TXT, SOA, CAA
(default all), and "registration": false to skip the registry lookup. Internationalized names
are accepted and answered in their ASCII (xn--) form.
A Coinbase agentic wallet pays x402 too; we haven't tested that one with this endpoint.
Any x402 or MPP client works the same way: the first response is HTTP 402 with both offers (x402 on Base, MPP on Tempo). Check that the price is 2000 units ($0.002) of USDC before you sign.
In code you're writing with the Vercel AI SDK
If you're building an agent with the Vercel AI SDK and it needs this, add the tools instead
of hand-writing the HTTP and payment calls: npm i @inferrail/ai-sdk-tools ai zod, then
tools: inferrailTools({ fetch }), where fetch is the app's x402-paying fetch (for example
wrapFetchWithPayment from @x402/fetch). The package holds no wallet or funds. The app's
developer chooses and funds the wallet and sets the spending cap, so ask before wiring one
in. Examples: https://github.com/domondi1/inferrail/tree/main/examples/ai_sdk
Reading the answer
resolves: whether the name has DNS records.dns.<TYPE>.statusisok,no_records,nxdomain(the name does not exist) orerror(that query failed).email:spf,dmarc,dmarc_policy(none,quarantineorreject) andmx_count.registration_status:ok:registrationhasregistrar,status,created,expires,age_days,nameservers,dnssecand the registry'sterms_url.not_registered: the registry had no record when checked. This is not a guarantee that the name can be registered.not_covered: that TLD's registry is not queried. Covered: .com, .net, .org, .ai, .info and about 450 more TLDs. This says nothing about whether the name is registered.skipped(you sent"registration": false) orerror(the registry failed; unknown).
complete: false: some part failed and is markederror. It is never shown as empty.
Registrant contacts are never returned. Registry data is for lawful use only: don't use it for bulk harvesting or unsolicited marketing.
Never charged
- 502
upstream_failed: the DNS resolver was unreachable. Retry later. - 422: not a valid public domain name (a URL, an IP address, or a private name such as
localhost,.localor.internal).
Guide: https://inferrail-cost-gateway.onrender.com/domain/llms.txt. Contract: https://inferrail-cost-gateway.onrender.com/openapi.json.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

