{"uid":"cap_asP_Mig3WTQBeKKq-_j_Q","slug":"penniless-data-utilities-dns-lookup-d3f6ff34","name":"Penniless Data Utilities – DNS Lookup","description":"Deterministic, dependency-free data utilities served over x402 micropayments (USDC on Base). None of these call another AI model.\nKeyword: JSON repair\nKeyword: malformed JSON\nKeyword: broken JSON from LLM\nKeyword: fix JSON output\nKeyword: JSON sanitizer\nKeyword: truncated JSON recovery\nKeyword: YAML to JSON\nKeyword: convert YAML\nKeyword: parse YAML config\nKeyword: cron next run\nKeyword: cron parser\nKeyword: when does cron run next\nKeyword: unified diff\nKeyword: line diff\nKeyword: text diff\nKeyword: HTML to text\nKeyword: extract links\nKeyword: extract emails\nKeyword: scrape text\nKeyword: whois lookup\nKeyword: domain registration\nKeyword: registrar\nKeyword: domain expiry date\nKeyword: RDAP\nKeyword: dns lookup\nKeyword: MX records\nKeyword: TXT records\nKeyword: A record\nKeyword: DNS over HTTPS\nKeyword: github repo stats\nKeyword: github stars\nKeyword: repository popularity\nKeyword: OSS project metadata\nKeyword: email validation\nKeyword: verify email address\nKeyword: check MX deliverability\nKeyword: email syntax\nUse case: repair a JSON code block wrapped in Markdown fences\nUse case: turn a docker-compose or CI YAML file into JSON\nUse case: compute the next UTC fire time of a cron expression\nUse case: produce a unified diff between two versions of a file\nUse case: strip HTML tags and pull out links, emails, and headings\nUse case: look up a domain's registrar, status and expiry before purchase\nUse case: check when a domain registration lapses\nUse case: resolve A, AAAA, MX, TXT or NS records for a hostname\nUse case: find a domain's mail servers and SPF TXT record\nUse case: compare GitHub repository stars, forks and activity for market research\nUse case: check whether an email address is well-formed and its domain accepts mail","url":"https://penniless-json-repair.sjaman.workers.dev/dns/lookup","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["domain"],"properties":{"type":{"enum":["A","AAAA","CNAME","MX","TXT","NS","SOA","PTR","SRV","CAA"],"type":"string","description":"Record type (default A)"},"domain":{"type":"string","description":"Hostname to resolve"}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"MX","domain":"example.com","status":"NOERROR","answers":[{"ttl":180,"data":"0 .","name":"example.com","type":"MX"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hRJwmZdR5I2PYRpj2ys_r","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs a DNS record lookup for a given domain, returning structured answers for any record type (A, MX, TXT, etc.) via DNS over HTTPS.","exampleAgentPrompt":"Look up the MX records for gmail.com and tell me which mail servers handle its email.","exampleUseCases":[{"title":"Email deliverability pre-check","prompt":"Before I send a bulk email campaign to addresses at acmecorp.com, can you look up their MX records to confirm they have working mail servers configured?"},{"title":"SPF record verification","prompt":"Check the TXT records for stripe.com — I want to see if they have an SPF record set up and what it says."},{"title":"Domain A record resolution","prompt":"What IP address does api.github.com resolve to? Look up its A record for me."}],"resultDescription":"Returns a JSON object with ok (boolean), the queried domain, record type, DNS status (e.g. NOERROR, NXDOMAIN), and an array of answers each containing name, type, TTL, and data fields.","failureModes":["Domain does not exist — returns NXDOMAIN status with empty answers array","Requested record type not found — returns NOERROR with empty answers","Invalid domain format — may return error or empty result","Payment failure via x402 — 402 response before DNS query is attempted","Upstream DNS resolver timeout — request may fail or return partial results"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-query DNS lookup without managing resolver infrastructure. Ideal for agents that occasionally need DNS data without a standing DNS subscription, especially when already using x402 micropayment infrastructure. Prefer over general WHOIS or RDAP endpoints when you specifically need live DNS record data (A, MX, TXT, CNAME, etc.) rather than registrar/ownership information.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:30:04.870Z","isFirstParty":false}