{"uid":"cap_5IpzGf2Egrys-N95Q05-p","slug":"dns-a-aaaa-record-resolver-via-doh-02166386","name":"DNS A/AAAA Record Resolver via DoH","description":"Resolve A and AAAA records for a public hostname via DNS-over-HTTPS (60s cache)","url":"https://vending-machine-seven.vercel.app/api/v/dns-resolve","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["host"],"properties":{"host":{"type":"string","description":"Hostname e.g. example.com"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"a":{"type":"array"},"ok":{"type":"boolean"},"aaaa":{"type":"array"},"host":{"type":"string"},"source":{"type":"string"},"service":{"type":"string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_b8qOFmObUmBgVseK9-_yo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves IPv4 (A) and IPv6 (AAAA) DNS records for a public hostname using DNS-over-HTTPS with a 60-second cache","exampleAgentPrompt":"What are the IPv4 and IPv6 addresses that api.example.com currently resolves to? Use DNS-over-HTTPS to look it up.","exampleUseCases":null,"resultDescription":"Returns an object containing the queried hostname, an array of A (IPv4) records, an array of AAAA (IPv6) records, a boolean ok indicating success, the DoH source used, and a service label. Results are cached for 60 seconds.","failureModes":["Invalid or non-existent hostname returns empty arrays or ok:false","Private/internal hostnames not resolvable via public DoH","Network timeout from the DoH upstream resolver","Malformed host query parameter returns error","Rate limiting or payment failure returns 402"],"whenToPreferThis":"Use this endpoint when you only need A and AAAA records (IP addresses) for a single hostname and want a simple, fast lookup. For multiple record types (MX, TXT, NS, CNAME) in one call, use the sibling multi-record endpoint instead. Ideal for IP resolution checks, connectivity validation, or enriching host data with address information.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:34:49.680Z","isFirstParty":false}