{"uid":"cap_X5mTLvyxWbHT3a_HZ6fkp","slug":"dns-record-lookup-api-3e686618","name":"DNS Record Lookup API","description":"Resolve ONE DNS record type for a domain -- the cheapest, narrowest domain-check endpoint. For all record types at once, use /domain/intelligence. For a bundled DNS+TLS+headers audit, use /web/audit (raw) or /security/posture (scored). For mail-security plus a scored verdict, use /domain/due-diligence.","url":"https://api.bakhour.ca/dns/lookup","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string"},"record_type":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"domain":"openai.com","answers":["104.18.33.45"],"record_type":"A"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oD0OF_GaGBB0Y3rq7h-qt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves DNS records for a given domain, returning IP addresses or other DNS answers by record type","exampleAgentPrompt":"Can you do a DNS lookup for openai.com and tell me what its A record resolves to?","exampleUseCases":[{"title":"Verify domain IP before deployment","prompt":"Before I deploy my app, can you check what IP address example.com resolves to with an A record lookup?"},{"title":"Check email domain MX records","prompt":"I need to verify my email setup — can you look up the MX records for mycompany.com?"},{"title":"Debug DNS propagation for new domain","prompt":"I just updated my DNS settings for myblog.io — can you do a DNS lookup and tell me what it resolves to right now?"}],"resultDescription":"A JSON object containing the queried domain name, the DNS record type requested, and an array of answers (e.g. IP addresses or other DNS values) returned by the DNS resolver.","failureModes":["Domain does not exist or is unresolvable — empty answers array or error response","Invalid record type provided — may return error or default to A record","Network timeout reaching authoritative DNS servers — request failure","Malformed domain input — validation error returned"],"whenToPreferThis":"Use this endpoint when an AI agent needs to programmatically resolve DNS records for any domain, especially in automated workflows involving network verification, email configuration checks, or infrastructure validation. Preferred over manual dig/nslookup when operating in agent pipelines that require a simple HTTP-based DNS lookup with pay-per-call pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:34:57.429Z","isFirstParty":false}