# Mail Setup: MX and TXT

MX and TXT of deepinfo.com in one request: its mail servers and the SPF record that goes with them.

Source: https://docs.deepinfo.com/reference/lookup/dns/examples/types-mx-txt/

Last updated: 2026-09-24

---
`GET https://api.deepinfo.com/v1/lookup/dns?domain=deepinfo.com&type=MX%2CTXT`

MX and TXT of deepinfo.com in one request: its mail servers and the SPF record that goes with them.

Example 2 of 4 in **Several Types in One Request** · [DNS Lookup Examples](/reference/lookup/dns/examples/) · endpoint: [DNS](/reference/lookup/dns/)

Tags: `param` `domain` · `param` `type` · `value` `deepinfo.com` · `value` `MX,TXT`

Asks for `MX,TXT` of `deepinfo.com`, the two types that describe a domain's mail setup.

The `MX` entry lists five Google Workspace mail servers (`aspmx.l.google.com` and its `altN` backups); the `TXT` entry holds the SPF policy that authorizes Google's servers (`include:_spf.google.com`) next to site verification tokens.

## Request

| Parameter | In | Value |
|---|---|---|
| `domain` | query | `deepinfo.com` |
| `type` | query | `MX,TXT` |

```bash
curl 'https://api.deepinfo.com/v1/lookup/dns?domain=deepinfo.com&type=MX%2CTXT' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Accept: application/json'
```

## Response

### 200 · OK

`Content-Type: application/json` · `ratelimit-limit: 100000` · `ratelimit-remaining: 99985` · `ratelimit-reset: 29` · `x-ratelimit-limit-minute: 100000` · `x-ratelimit-remaining-minute: 99985` · `deepinfo-request-id: 5f0c6a8e-1b2d-4c3e-9f4a-7b8c9d0e1f2a`

```json
{
  "fqdn": "deepinfo.com",
  "requested_types": [
    "MX",
    "TXT"
  ],
  "responses": [
    {
      "type": "MX",
      "conn_status": "success",
      "rcode": "NOERROR",
      "raw": "deepinfo.com. 300 IN MX 10 alt3.aspmx.l.google.com.\ndeepinfo.com. 300 IN MX 1 aspmx.l.google.com.\ndeepinfo.com. 300 IN MX 10 alt4.aspmx.l.google.com.\ndeepinfo.com. 300 IN MX 5 alt1.aspmx.l.google.com.\ndeepinfo.com. 300 IN MX 5 alt2.aspmx.l.google.com.",
      "values": [
        "1 aspmx.l.google.com",
        "5 alt1.aspmx.l.google.com",
        "5 alt2.aspmx.l.google.com",
        "10 alt3.aspmx.l.google.com",
        "10 alt4.aspmx.l.google.com"
      ],
      "server": "8.8.8.8"
    },
    {
      "type": "TXT",
      "conn_status": "success",
      "rcode": "NOERROR",
      "raw": "deepinfo.com. 300 IN TXT \"v=spf1 include:_spf.google.com ~all\"\ndeepinfo.com. 300 IN TXT \"MS=5060612A08C2271BA7172D83CAC0DFB7646605E1\"\ndeepinfo.com. 300 IN TXT \"google-site-verification=EEDz3JvEB7rlbReuBEnQe27ctNNhov-_NwjtbQns3cg\"\ndeepinfo.com. 300 IN TXT \"google-site-verification=yruvnCFw5vKluiIoVnufYBNZ-C0HEXArbQN-x14wjmQ\"\ndeepinfo.com. 300 IN TXT \"07136fe7fd10489e6e5aaecb042dd586.deepinfo.com\"\ndeepinfo.com. 300 IN TXT \"atlassian-domain-verification=qAThkYEbPZxmRAXdz196YzVLEJxRagOzEAnVLbhUTtRGxyffJcFya4M4rW/Hwl0D\"",
      "values": [
        "\"07136fe7fd10489e6e5aaecb042dd586.deepinfo.com\"",
        "\"MS=5060612A08C2271BA7172D83CAC0DFB7646605E1\"",
        "\"atlassian-domain-verification=qAThkYEbPZxmRAXdz196YzVLEJxRagOzEAnVLbhUTtRGxyffJcFya4M4rW/Hwl0D\"",
        "\"google-site-verification=EEDz3JvEB7rlbReuBEnQe27ctNNhov-_NwjtbQns3cg\"",
        "\"google-site-verification=yruvnCFw5vKluiIoVnufYBNZ-C0HEXArbQN-x14wjmQ\"",
        "\"v=spf1 include:_spf.google.com ~all\""
      ],
      "server": "8.8.8.8"
    }
  ],
  "servers": [
    "8.8.8.8"
  ],
  "check_date": "2026-09-24T07:48:31Z"
}
```

## Related Examples

- [Five Types at Once](/reference/lookup/dns/examples/five-types/)
- [SOA Record: Zone Authority](/reference/lookup/dns/examples/type-soa/)
- [TXT Records](/reference/lookup/dns/examples/type-txt/)
- [NS Records: Name Servers](/reference/lookup/dns/examples/type-ns/)
- [A Records of a Domain](/reference/lookup/dns/examples/type-a/)
- [IPv4 and IPv6 Addresses Together](/reference/lookup/dns/examples/types-a-aaaa/)
