{"uid":"cap_l1HEptjUXdkM-Lj0ywPtp","slug":"dns-mx-record-lookup-96b39a5d","name":"DNS MX Record Lookup","description":"DNS MX record lookup — a domain's mail servers with their hostnames and priorities as structured JSON, for email routing, deliverability diagnostics and mail-provider detection.","url":"https://dns.use.x402atlas.com/mx","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"},"queryParams":{"type":"object","required":["host"],"properties":{"host":{"type":"string","maxLength":253,"minLength":1,"description":"Bare hostname to resolve (not an IP literal, not localhost, not under a reserved suffix like .local/.internal)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["host","records","queried_at"],"properties":{"host":{"type":"string","description":"The queried hostname"},"records":{"type":"array","items":{"type":"object","required":["host","pref"],"properties":{"host":{"type":"string","description":"Mail server hostname, typically with a trailing dot"},"pref":{"type":"integer","description":"MX preference; lower values are tried first"}}}},"queried_at":{"type":"string","format":"date-time","description":"UTC timestamp of the lookup"}}}}}}},"responseSchema":{"type":"json","example":{"host":"example.com","records":[{"host":"mail.example.com.","pref":10}],"queried_at":"2026-06-05T12:00:00Z"}},"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_OTjMYxhN5eP9Mi70hTGcB","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":"Looks up DNS MX (mail exchange) records for a hostname, returning mail server hosts and their priorities as structured JSON.","exampleAgentPrompt":"What are the MX records for gmail.com? I want to see which mail servers handle its email and what their priorities are.","exampleUseCases":null,"resultDescription":"A structured JSON object listing MX records for the queried hostname, each entry containing the mail server hostname and its numeric priority value used for email routing.","failureModes":["Domain has no MX records — returns empty list or appropriate status","Invalid or malformed hostname — returns error response","Domain does not exist (NXDOMAIN) — returns error or empty result","Network or upstream DNS resolver failure — returns error","Payment not included or insufficient — returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to verify email routing configuration, check which mail provider handles a domain, validate email deliverability setup, or inspect MX record priorities for a specific hostname. Prefer this over general DNS tools when you specifically need MX (mail exchange) data in a structured, agent-consumable JSON format via a simple GET request.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:36:10.561Z","isFirstParty":false}