Domains and DNS

What DNSSEC is and how to set it up in cPanel

Reviewed on 4 min read DNSSEC cPanel

What DNSSEC is

When you visit a website, your computer asks the DNS servers which IP the domain points to. That system is based on trust: if someone tampers with the answer (for example, on a compromised network), they can send you to a fake server without you noticing and steal your login details with phishing.

DNSSEC adds digital signatures to DNS answers. Resolvers that validate DNSSEC check that the zone's signature matches the key published in the domain's registry. If someone alters the answer, the signature does not match and the answer is discarded.

DNSSEC does not encrypt queries or replace the SSL certificate: it protects the authenticity of the DNS answer.

How to enable it

There are two steps and both are needed:

  1. Create the key on the domain's DNS servers, in this case in cPanel. This signs the zone.
  2. Add the public key at the domain's registrar. This «pairs» the zone with the registry.

This guide applies when the domain uses your hosting's DNS. If it uses Cloudflare, follow DNSSEC on domains that use Cloudflare.

1. Create the key in cPanel

In cPanel, go to Zone Editor. You will see the list of domains with several options next to them; click DNSSEC on the domain you want to protect.

DNSSEC option next to the domain in cPanel's Zone Editor

At the top right, click Create Key.

Create Key button on the domain's DNSSEC page

A window opens with the keys it is going to generate. Leave the recommended values and click Create. Note down the algorithm it shows (in the screenshot, RSA/SHA-256, algorithm 8): you will need it at the registrar.

Confirmation window with the KSK and ZSK keys to be generated

If the domain is registered with another provider, first check which algorithms it supports and click Customize to choose a compatible one.

When you return to the domain's DNSSEC page you will see two keys: KSK and ZSK.

KSK and ZSK keys created for the domain in cPanel

Expand the KSK, click Public DNSKEY and copy the key with the Copy button. Do the same with the ZSK if your registrar asks for it.

Public DNSKEY with the Copy button

2. Add the key at the registrar

If the domain is registered with us, follow how to add the DNSSEC key to a domain. In the form you choose the algorithm and paste the KSK public key (the ZSK is optional). Paste only the key, not the full DNSKEY line or the DS record.

If the domain is with another registrar, it may ask for the DS record instead of the public key (key tag, algorithm, digest type and digest). On cPanel's DNSSEC page you will find them under the KSK's View DS Records button.

Check that it works

After a few hours, analyse the domain with DNSViz or Verisign's DNSSEC Analyzer. The chain should show green from the extension (.com, .es...) down to your domain.

If it shows red or the website stops loading with a SERVFAIL error, the usual cause is that the registrar's key does not match cPanel's: check that you copied the right KSK and the right algorithm. Do not delete the key in cPanel to «fix» it: that leaves the domain unable to resolve for anyone who validates DNSSEC.

Turn off DNSSEC or change DNS provider

The order matters:

  1. First remove the key at the domain's registrar.
  2. Wait at least 24-48 hours for the previous information to expire.
  3. Then delete the keys in cPanel > Zone Editor > DNSSEC.

If you do it the other way round, or move the domain's DNS to another provider while leaving the old key at the registrar, the domain will stop resolving for many users. If you are migrating, also see how to change DNS with minimal disruption.

You may also find useful

Something wrong or out of date? Tell us and we will review it.