---
title: "Enable vanity name servers"
method: PUT
path: "/{account}/vanity/{domain}"
tags: ["vanity name servers"]
---

# Enable vanity name servers

`PUT /{account}/vanity/{domain}`

Enables Vanity Name Servers for the domain.

This method sets up the appropriate A and AAAA records for the domain to provide vanity name servers, but it does not change the delegation for the domain. To change the delegation for domains to vanity name servers use the endpoints to Delegate to Vanity Name Servers or Dedelegate from Vanity Name Servers.

## Path parameters

- `account` integer, required
- `domain` string, required

## Response `200`

Successfully enabled vanity name servers on the domain.

- object
  - `data` VanityNameServer[], required
    - `id` integer, required
    - `name` string, required
    - `ipv4` string, required
    - `ipv6` string, required
    - `created_at` string, date-time, required — A date-time value, representing when the entry was created, formatted as ISO 8601.
    - `updated_at` string, date-time, required — A date-time value, representing when the entry was last updated, formatted as ISO 8601.

## Other responses

- `400` — A required parameter is missing or the request is invalid.
- `404` — The requested resource doesn't exist.

---

[API](https://skmtc.net/dnsimple/apis/dnsimple-api.md) · [All operations](https://skmtc.net/dnsimple/apis/dnsimple-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dnsimple/dnsimple-api/revisions/270bb4f6f532/schema)
