# A Host Name Behind a CNAME

A and CNAME of www.github.com: the alias and the address of the name it points to.

Source: https://docs.deepinfo.com/reference/lookup/dns/examples/www-a-cname/

Last updated: 2026-09-24

---
`GET https://api.deepinfo.com/v1/lookup/dns?domain=www.github.com&type=A%2CCNAME`

A and CNAME of www.github.com: the alias and the address of the name it points to.

Example 4 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` `www.github.com` · `value` `A,CNAME`

Asks for `A,CNAME` of `www.github.com`.

The `CNAME` entry shows that `www.github.com` is an alias of `github.com.`. The `A` entry follows the alias: its `raw` answer names `github.com.`, not `www.github.com`, and gives its IPv4 address.

## Request

| Parameter | In | Value |
|---|---|---|
| `domain` | query | `www.github.com` |
| `type` | query | `A,CNAME` |

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

## Response

### 200 · OK

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

```json
{
  "fqdn": "www.github.com",
  "requested_types": [
    "A",
    "CNAME"
  ],
  "responses": [
    {
      "type": "A",
      "conn_status": "success",
      "rcode": "NOERROR",
      "raw": "github.com. 60 IN A 140.82.114.4",
      "values": [
        "140.82.114.4"
      ],
      "server": "8.8.8.8"
    },
    {
      "type": "CNAME",
      "conn_status": "success",
      "rcode": "NOERROR",
      "raw": "www.github.com. 3471 IN CNAME github.com.",
      "values": [
        "github.com."
      ],
      "server": "8.8.8.8"
    }
  ],
  "servers": [
    "8.8.8.8"
  ],
  "check_date": "2026-09-24T07:49:39Z"
}
```

## Related Examples

- [CNAME Record of a Host Name](/reference/lookup/dns/examples/type-cname/)
- [Five Types at Once](/reference/lookup/dns/examples/five-types/)
- [Mail Setup: MX and TXT](/reference/lookup/dns/examples/types-mx-txt/)
- [IPv4 and IPv6 Addresses Together](/reference/lookup/dns/examples/types-a-aaaa/)
- [A Name Without Records of the Requested Type](/reference/lookup/dns/examples/no-records/)
- [A Domain That Is Not Registered](/reference/lookup/dns/examples/unregistered-domain/)
