Fast, stateless Network Diagnostics

Network & DNS

GET/api/v1/mx-lookup

MX Lookup

The mail servers that accept email for a domain, in priority order.

ParameterTypeRequiredDescription
domainstringYesDomain to look up.

Example request

curl "https://netsh.io/api/v1/mx-lookup?domain=example.com&api_key=YOUR_API_KEY"

Example response

{
  "ok": true,
  "data": {
    "domain": "example.com",
    "hosts": [
      { "priority": 5, "exchange": "mxa.example.com", "ip": "172.65.169.99", "provider": null },
      { "priority": 10, "exchange": "mxb.example.com", "ip": "172.65.65.66", "provider": null }
    ]
  },
  "meta": { "tool": "mx-lookup", "version": "v1" }
}