# Get DNS Record

## Get DNS Record

<mark style="color:blue;">`GET`</mark> `https://api.mojodns.com/api/v1/:domain/:type`

This endpoint allows you to get query a DNS records.  Example:\
\
<https://api.mojodns.com/api/v1/example.com/mx>

#### Path Parameters

| Name   | Type   | Description                                          |
| ------ | ------ | ---------------------------------------------------- |
| type   | string | Type of DNS record you want.  (e.g. mx, a, ns, etc.) |
| domain | string | Domain or hostname you are looking up                |

#### Headers

| Name           | Type   | Description          |
| -------------- | ------ | -------------------- |
| Authentication | string | Authentication token |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```javascript
{
    "name": "Cake's name",
    "recipe": "Cake's recipe name",
    "cake": "Binary cake"
}
```

{% endtab %}

{% tab title="429 Learn more here" %}

```javascript
{
    ""
}
```

{% endtab %}
{% endtabs %}
