# Connect with Agent hostname (optional) - Agent Delivery Network | Agent Delivery Network

<!-- adn:geo-lead -->
> **Agent hostname** adds a dedicated subdomain such as `agents.yoursite.com` that points at ADN for discovery. Your main www or apex DNS stays unchanged. Agents that follow discover

<!-- /adn:geo-lead -->

[Back to Help](/help)

**Agent hostname** adds a dedicated subdomain such as `agents.yoursite.com` that points at ADN for discovery. Your main www or apex DNS stays unchanged. Agents that follow discovery pointers use ADN; others may still hit the origin directly.

## When to choose this

• You want discovery and MCP pointers without proxying www yet

• Marketing pages must stay on the current DNS until a later cutover

• You will add a full DNS connect cutover later for production agent traffic on www

## Wizard steps

1. Complete ownership TXT and **Check now**.

2. On **Choose how to connect**, select **Agent hostname (optional)** (dashed border card) and press **Next**.

3. On **Connect**, add the CNAME the **Agent hostname** panel shows.

4. **Continue to go live** and wait for traffic on the agent hostname.

## Step-by-step on Connect

### 1. Gateway hostname

The panel shows the target hostname (for example `agents.yoursite.com`) and CNAME target.

### 2. DNS at your provider

1. Add the CNAME record exactly as listed.

2. If DNS is on Cloudflare, set the record to **DNS only (grey cloud)**. Proxied orange cloud breaks certificate issuance.

3. Wait until **Certificate** moves from **Pending (certificate provisioning)** to active. ADN waits until public DNS shows the CNAME before requesting the certificate. If it stays pending after 30 minutes with a correct CNAME, use **Refresh status** on **Connect**; ADN can retry provisioning once.

### 3. Discovery only vs full delivery

• Discovery files and pointers can advertise the agent hostname.

• For site-wide delivery on www, plan a later switch to **DNS connect** or an edge connector.

## Related

• [Connection methods compared](/help/connection-methods)

• [Verify domain ownership and SSL](/help/kb/verify-domain-ownership-and-ssl)