DNS Lookup
Look up A, AAAA, CNAME, MX, and TXT records for any domain.
ℹ️ About this lookup
- A / AAAA — the IPv4 / IPv6 address(es) the domain points to.
- CNAME — an alias to another hostname; only present when the domain itself is defined as an alias (most domains with A/AAAA records directly won't have one).
- MX — mail servers responsible for the domain, each with a priority (lower is preferred).
- TXT — arbitrary text records, commonly used for domain verification (Google, Facebook, etc.) and email authentication (SPF, DKIM policy hints).
- Each record type is looked up independently — one missing or erroring type never blocks the others.
💻 Show API usage example (cURL)
curl -sS "https://devops.majbase.com/dns-lookup/api?domain=example.com"
Returns JSON: {"domain": "example.com", "results": {"A": {"records": [...], "error": null}, "AAAA": {...}, "CNAME": {...}, "MX": {...}, "TXT": {...}}}. Each type's error is null on success, or a short message (e.g. no records found, NXDOMAIN, timeout) — it never blocks the other types from resolving.