# Manage DNS records

> For AI agents: the complete documentation index is at https://buddy.works/llms.txt

Learn how to add, edit, and manage DNS records in Buddy, including A, CNAME, MX, TXT, and other common record types.

DNS records define how your domain operates. With them, you can:

- Point the domain to a server (`A`, `AAAA`)
- Configure your mail (`MX`, `SPF`, `TXT`)
- Connect the domain to applications (Google Workspace, Zoho, SES itd.)
- Specify who can issue SSL certificates (`CAA`)
- Set aliases (`CNAME`)
- Manage advanced services (`SRV`, `NAPTR`)

Some records, such as `SOA` and default `NS`, are generated automatically and cannot be edited.

## Supported record types

| Type     | Description                                           |
|---------|------------------------------------------------|
| A       | IPv4 address of the server                     |
| AAAA    | IPv6 address of the server                     |
| CNAME   | Alias to another domain name                   |
| MX      | Email servers addresses                        |
| TXT     | Any text \- e.g. domain verification, [DMARC](https://buddy.works/docs/domains/dmarc.md) |
| SPF     | Email sender authorization record              |
| SRV     | Records for services like SIP, XMPP etc.       |
| CAA     | Specifies who can issue SSL certificates       |
| NS      | Zone nameservers                               |
| NAPTR   | Advanced records for phones and VoIP           |


##  Integration with services

In addition to manually adding records, Buddy offers ready-made integrations with popular email services. After selecting a service, the appropriate SPF and MX records will be automatically filled in according to the provider's recommendations.

| Application          | What it adds                                       |
|----------------------|----------------------------------------------------|
| Google Workspace     | SPF and MX records for handling Google Mail        |
| Workspace Legacy     | Older set of MX records for Google                 |
| Zoho                 | MX and SPF records for Zoho Mail                   |
| Mailgun              | MX and SPF records for sending email via Mailgun   |
| ImprovMX             | Simple email forwarding                            |
| Proton Mail          | ProtonMail records                                 |
| Microsoft 365        | SPF and MX records for Outlook/M365                |
| iCloud               | SPF and MX records for iCloud Mail                 |
| Amazon SES           | SPF and MX records for Amazon Simple Email Service |

Each integration automatically creates the required DNS records — most often SPF and MX — based on the provider's default values.

## Record list view

In the `Records` view, you will see the currently active records for a given domain, such as `SOA` and `NS`, which are generated automatically.
You will also see all the records you add to the domain here.

![Default DNS records](https://buddy.works/docs/domains/records-list.png)

## Example: Adding a `A` record.

Click `New record`, and select the type of the record you wish to add.

![List of records and integrations](https://buddy.works/docs/domains/records-add.png)

- **Name** \- parts of the domain name, e.g.:
  - `@` \- main domain (e.g., `example.com`)
  - `www` \- subdomain (e.g., `www.example.com`)
- **TTL (Time To Live)** \- Specifies how long a DNS record can be cached before it must be retrieved again from the server. You can select: `1m`, `5m`, `1h`, `1d` or a `Custom` value.
- **Routing Policy** \- Specifies how a DNS record should be routed:
  - **Simple** \- Standard routing, where all users receive the same response regardless of their location.
  - **Geolocation** \- Routes users to different servers based on their geographic location. You can specify different record values for individual countries.
- **Answer** \- The value of the record, e.g., the IP address `192.0.2.1` for an `A` record. When using Geolocation routing, you can specify multiple values for different locations.
- **Comment** \- An optional field where you can add a comment describing the changes.

![Adding a record](https://buddy.works/docs/domains/records-add-example.png)

After filling out the form, click `Stage` to save the draft changes, or `Commit` to apply them.

> **Info**
>
> **Maximum TTL** is `2147483647` seconds, based on `INT32_MAX` limitation for UNIX systems.

## Example: adding record without commit

After clicking `Stage`, the record will be saved as a draft change but will not be active yet.

![Staged changes](https://buddy.works/docs/domains/domains-record-stage-1.png)

Here you can `Review staged changes`.

![Review staged changes](https://buddy.works/docs/domains/domains-record-stage-2.png)

After clicking it, you will see the list of changes waiting for review. 

![Change list](https://buddy.works/docs/domains/domains-record-stage-3.png)

From this view, you can review the details of each record change, its value, and the set TTL.
You have the option to manually approve selected changes or delete them before publication.

When everything is correct, clicking the Commit selected button will publish the changes to DNS.
Until you click `Commit`, the records remain as drafts and are not publicly visible.

## DNS Records in REST API

The Buddy REST API allows you to manage DNS records:

- [Create or edit a DNS record](https://buddy.works/docs/api/domains/records/create-edit.md)
- [Delete a DNS record](https://buddy.works/docs/api/domains/records/delete.md)
- [Retrieve a single DNS record](https://buddy.works/docs/api/domains/records/get.md)
- [List all DNS records](https://buddy.works/docs/api/domains/records/list.md)
- [List DNS records by name](https://buddy.works/docs/api/domains/records/list-by-name.md)


---
Original source: https://buddy.works/docs/domains/records