# Cloudflare Error 1001: DNS resolution error

**Code:** `1001` · **Category:** Cloudflare · **Seen on:** Cloudflare

Cloudflare received the request but the hostname isn’t set up on Cloudflare (or the domain was just added and not active yet).

## Meaning

Usually a CNAME pointing to a hostname on Cloudflare that doesn’t exist in that zone, a domain recently added/removed, or a Pages/Workers custom domain not configured.

## Common causes

- Hostname missing in the Cloudflare zone
- Domain added recently (nameservers not active)
- CNAME to a Cloudflare-hosted target that doesn’t exist
- Custom domain not attached to Pages/Workers

## Quick fix

1. Add the DNS record for the hostname
2. Wait for nameserver activation
3. Attach the custom domain in Pages/Workers settings

## Detailed fix by platform

### Shell

1. 

```bash
dig +short NS example.com
dig +short app.example.com @1.1.1.1
```


## How to diagnose

1. **Zone** — Record exists?
2. **Status** — Zone active?
3. **Target** — Pages/Workers custom domain set?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/cloudflare/1001-dns-resolution-error)
