Get DNS Mail Information
This documentation helps you retrieve DNS mail-related information for a given domain. The response contains mail-related DNS record details.
Further Reading: Retrieving DNS Mail Information
To retrieve mail-specific DNS details for a domain, make a request to the following API endpoint:
GET https://api-sb.ricardoneud.com/v1/tools/mailcheck
Request Headers:
Header | Type | Required | Description |
---|---|---|---|
Authorization | string | ✅ | Bearer token with a valid API key |
X-Domain | string | ✅ | The domain of the DNS you want to check |
X-DKIM-Selector | string | ❌ | Identifies the DKIM key for signing emails. |
Example Response
The response will contain mail-related DNS records for the domain:
Example:
{ "domain": "ricardoneud.com", "spf": "v=spf1 include:_spf.example.com ~all", "dmarc": "DMARC record missing or invalid", "dkim": "DKIM Selector is missing", "mx": "mail.example.com (priority 10), mail2.example.com (priority 20)", "ptr": "No PTR record found", "bimi": "v=BIMI1; l=https://example.com/logo.svg; a=https://example.com/cert.pem", "google_verification": "Domain is verified by Google"}
Fields in the Response:
- domain: The domain that the DNS records belong to.
- spf: The SPF record for the domain.
- dmarc: The DMARC policy for the domain.
- dkim: The DKIM record status for the domain and selector.
- mx: The mail exchange record for the domain.
- ptr: The PTR record (reverse DNS) for the domain.
- bimi: The BIMI record status.
- google_verification: Google domain verification status.