> ## Documentation Index
> Fetch the complete documentation index at: https://help.onetsolutions.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Secure your domain with DNSSEC

> Turn on DNSSEC for your domain from the console, whether its DNS is hosted at OnetSolutions or elsewhere

DNSSEC signs the DNS answers of your domain, so resolvers can check they have not been tampered with. Two things are needed: a signed DNS zone, and its key published at the registry of your extension. You do both from the [console](https://console.onetsolutions.net).

> [!NOTE]
>
> **Prerequisites**
>
> * A domain registered with OnetSolutions, or a DNS zone hosted at OnetSolutions
> * The owner or editor role to turn on DNSSEC on a zone, the owner role to publish a key at the registry

## Which case is yours?

| Domain registered with | DNS hosted at | What to do |
| - | - | - |
| OnetSolutions | OnetSolutions | [Turn on DNSSEC on the zone](#your-dns-is-hosted-at-onetsolutions): the DS record is published for you |
| OnetSolutions | Another DNS host | [Publish your DNS host's key](#your-dns-is-hosted-elsewhere) |
| Another registrar | OnetSolutions | [Turn on DNSSEC on the zone](#your-dns-is-hosted-at-onetsolutions), then copy the DS record to your registrar |

## Your DNS is hosted at OnetSolutions

**1. Open the zone settings**

Open **Domains**, click your domain, then **Zone settings**.

**2. Enable DNSSEC**

In the **DNSSEC** card, click **Enable DNSSEC**. The zone is signed and its DS record is shown.

**3. Publish the DS record**

* **Domain registered with OnetSolutions**, with its nameservers pointing to this zone: the DS record is published at the registry automatically.
* **Domain registered elsewhere**: copy the **DS record** into the DNSSEC settings of your registrar. Some registrars ask for the **Public key (DNSKEY)** and its **Flags** instead: both are shown in the same card.

The status reads **Waiting for the DS record**, then **Active** once the record is seen at the registry.

## Your DNS is hosted elsewhere

When your domain is registered with OnetSolutions and another DNS host signs its zone, publish that host's key yourself.

**1. Get the key from your DNS host**

Turn on DNSSEC at your DNS host, then copy the DNSKEY record of the key-signing key (KSK, flags 257).

**2. Open the domain's nameservers**

In the console, open **Domains**, click your domain, then **Nameservers**.

**3. Publish the key**

In the **DNSSEC at the registry** card, click **Configure**. Paste the key into **Public key or DNSKEY record**: a full DNSKEY record also fills in the **Algorithm**. Then click **Publish**.

The DS record is computed from the key and sent to the registry. The card then shows the published DS record and public key. To change the key, click **Replace**.

> [!WARNING]
>
> Only publish a key your DNS host already signs the zone with: a wrong key makes the domain unreachable for DNSSEC-validating resolvers.

## Check that DNSSEC works

Replace `example.com` with your domain:

```bash theme={null}
dig DS example.com +short
dig A example.com +dnssec @1.1.1.1
```

The first command returns the DS record published at the registry. In the second, the `ad` flag in the header means the resolver validated the answer.

## Turn DNSSEC off

* **Domain registered and DNS hosted at OnetSolutions**: in **Zone settings**, click **Disable DNSSEC**. The DS record is withdrawn from the registry first, then the zone's signing is turned off.
* **DNS hosted elsewhere**: in **Nameservers**, click **Remove DNSSEC**. Turn DNSSEC off at your DNS host only once the removal has propagated.
* **Domain registered elsewhere**: remove the DS record at your registrar, wait for the removal to propagate, then click **Disable DNSSEC** in **Zone settings**.

> [!WARNING]
>
> Follow this order: turning off the signature while the DS record is still published makes the domain unreachable for many visitors.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.