Get your free beta license ↗
DNS and certificates · Let's Encrypt

A wildcard certificate fails when the domain's DNS is hosted elsewhere

Last updated 30 Nov 2026
Summary

A Let's Encrypt certificate request for *.example.com fails when the domain's DNS is hosted elsewhere. UrbeStack publishes the validation record only on its own DNS server, so using this server's nameservers fixes the problem.

Symptoms

When the domain's wildcard setting is on, urbestack-cert-issue returns one of these errors.

Output
{"error":"No zone on this server holds example.com; a DNS validation needs one","ok":false,"status":400}
Output
{"error":"The public nameservers for example.com are not this server, so the CA would not see the validation record","ok":false,"status":400}

Cause

Let's Encrypt validates wildcard names only over DNS. It looks for a TXT record under _acme-challenge.example.com.

UrbeStack publishes that record in the domain's zone on this server and removes it after validation. If another host serves the domain's public DNS, Let's Encrypt cannot see the record.

Resolution

  1. At the registrar, set the domain's nameservers to this server's nameservers. Run dig +short NS example.com @127.0.0.1 to see which nameservers to use.

  2. You can also turn off the wildcard. Validation then uses HTTP for the site's names.

    urbestack-domain-set --name example.com --wildcard off
  3. Request the certificate again with urbestack-cert-issue --name example.com.