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

UrbeStack sysadmin note about Let's Encrypt. Last updated 30 Nov 2026.

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

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.

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

```
urbestack-domain-set --name example.com --wildcard off
```

Request the certificate again with `urbestack-cert-issue --name example.com`.

If the problem persists after you follow this note, you can [open a support ticket](https://support.urbestack.com/new?type=support). Including the output of the commands you ran helps support diagnose the problem.
