# Spaceship DNS

> Connect Spaceship so Vantuly creates the DNS records for your sites and lets you edit your Spaceship zones.

Source: https://vantuly.com/docs/domains/spaceship

If your domains are registered at Spaceship and use Spaceship's name servers, connect Spaceship once and Vantuly creates the DNS records for your sites.

## Create an API key in Spaceship

1. In Spaceship, open **API Manager** and create a new API key.
2. Give it these scopes:
   - `domains:read`
   - `dnsrecords:read`
   - `dnsrecords:write`
3. Copy the **API key** and the **API secret**. The secret is shown only once.

## Connect it in Vantuly

1. Go to **Settings → DNS providers → Spaceship DNS**.
2. Paste the **API key** and **API secret** and connect. Vantuly checks them with Spaceship first.

The key is stored encrypted and shown afterwards only as "API key ending …". **Disconnect** removes it. A team connects one Spaceship account.

## What you can do

- **Records for new sites**: when you create a site on a Spaceship domain, its A (and AAAA) records are created for you. Your Spaceship domains are listed to pick from, so there is nothing to type.
- **DNS page**: see and edit the records of your Spaceship domains: A, AAAA, CNAME, MX, TXT, NS and CAA.

## Good to know

- **Existing records are kept.** Spaceship records carry no note of who made them. If a host name already points somewhere else, Vantuly reports a conflict and leaves it alone until you choose to replace it.
- **Domains on other name servers** are listed, but their Spaceship records have no effect. Point the domain at Spaceship's name servers, or connect the DNS provider it uses, such as [Cloudflare](/docs/domains/cloudflare).
- **TTL**: Spaceship's longest TTL is 3600 seconds, which is also what **Automatic** sets.
- Records that Spaceship's own products or personal name servers keep cannot be changed from Vantuly.
- Changing a record replaces it, because Spaceship can only change a TTL in place. The new record is saved first, so the name keeps resolving. A CNAME is the exception: the old one goes first and is put back if Spaceship refuses the new one.
