# A certificate is refused because the domain does not point to the server

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

UrbeStack refuses to ask Let's Encrypt for a certificate when the domain does not resolve to the server. It checks every name first, and correcting the DNS records fixes the refusal.

## Symptoms

`urbestack-cert-issue` returns one of these errors.

```output
{"error":"example.com does not resolve; the CA could not validate it","ok":false,"status":400}
```

```output
{"error":"example.com resolves to 198.51.100.7 rather than this server; the CA could not validate it","ok":false,"status":400}
```

## Cause

Before asking Let's Encrypt for a certificate, UrbeStack looks up the A and AAAA records for every name the certificate would cover. It uses the resolver in `ssl.resolver` or the server's own resolver when that setting is empty.

The domain itself must resolve to the server. If a name such as `www.` fails the check, UrbeStack leaves that name off the certificate and the domain still gets one.

A name behind a proxy such as Cloudflare's passes the check if the proxy returns what the server serves.

The refusal costs nothing at Let's Encrypt because UrbeStack has sent no request.

## Resolution

Check which IP addresses the domain resolves to.

```
dig +short A example.com
dig +short AAAA example.com
```

Point the records to the server's IP address at the domain's DNS host. If this server hosts the domain's DNS, make the change in UrbeStack.

Wait for the old records' TTL to pass, then request the certificate again.

```
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.
