# SRV Record of a Service

The SRV record of _imaps._tcp.gmail.com: the host and port of Gmail's IMAP service.

Source: https://docs.deepinfo.com/reference/lookup/dns/examples/type-srv/

Last updated: 2026-09-24

---
`GET https://api.deepinfo.com/v1/lookup/dns?domain=_imaps._tcp.gmail.com&type=SRV`

The SRV record of _imaps._tcp.gmail.com: the host and port of Gmail's IMAP service.

Example 9 of 13 in **Record Types** · [DNS Lookup Examples](/reference/lookup/dns/examples/) · endpoint: [DNS](/reference/lookup/dns/)

Tags: `param` `domain` · `param` `type` · `value` `_imaps._tcp.gmail.com` · `value` `SRV`

Asks for the `SRV` record of `_imaps._tcp.gmail.com`.

An `SRV` record points a service (here IMAP over TLS, `_imaps._tcp`) to a host and port. The value `5 0 993 imap.gmail.com.` reads priority 5, weight 0, port 993, target `imap.gmail.com.`. Names that start with an underscore are accepted in `domain`.

## Request

| Parameter | In | Value |
|---|---|---|
| `domain` | query | `_imaps._tcp.gmail.com` |
| `type` | query | `SRV` |

```bash
curl 'https://api.deepinfo.com/v1/lookup/dns?domain=_imaps._tcp.gmail.com&type=SRV' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Accept: application/json'
```

## Response

### 200 · OK

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

```json
{
  "fqdn": "_imaps._tcp.gmail.com",
  "requested_types": [
    "SRV"
  ],
  "responses": [
    {
      "type": "SRV",
      "conn_status": "success",
      "rcode": "NOERROR",
      "raw": "_imaps._tcp.gmail.com. 21600 IN SRV 5 0 993 imap.gmail.com.",
      "values": [
        "5 0 993 imap.gmail.com."
      ],
      "server": "8.8.8.8"
    }
  ],
  "servers": [
    "8.8.8.8"
  ],
  "check_date": "2026-09-24T07:48:25Z"
}
```

## Related Examples

- [CAA Records: Allowed Certificate Authorities](/reference/lookup/dns/examples/type-caa/)
- [PTR Record: Reverse DNS](/reference/lookup/dns/examples/type-ptr/)
- [SOA Record: Zone Authority](/reference/lookup/dns/examples/type-soa/)
- [DMARC Policy in a TXT Record](/reference/lookup/dns/examples/dmarc-txt/)
- [CNAME Record of a Host Name](/reference/lookup/dns/examples/type-cname/)
- [DS Record: DNSSEC Delegation](/reference/lookup/dns/examples/type-ds/)
