> ## Documentation Index
> Fetch the complete documentation index at: https://support.zonely.gen.tr/llms.txt
> Use this file to discover all available pages before exploring further.

# Domain Marketing Integration

> Set up domain or subdomain products with Cloudflare-backed DNS management.

# Domain Marketing Integration

Domain Marketing is used to offer domain or subdomain-based products to users. With a Cloudflare connection, DNS records, subdomain creation, and domain routing can be managed through the panel.

This workflow is useful for game servers, communities, store pages, or projects that need a short and memorable address.

## How It Works

The admin prepares the domain infrastructure and Cloudflare connection. Then a domain or subdomain product is published in the store. After purchase, Zonely manages the domain request, DNS record, or routing flow according to the product settings.

If you sell subdomains, show the exact format users will receive. For example, if users choose a name under `example.com`, the product detail page should show that format clearly.

<Warning>
  Cloudflare keys are sensitive access credentials. Store them only in trusted admin areas and do not share them publicly.
</Warning>

## Preparation

Prepare these items before setup:

* Cloudflare account
* Domain or zone to manage
* Cloudflare API credentials
* Main domains available for subdomains
* Subdomain naming rules
* Pricing and renewal policy
* DNS target or routing behavior

DNS changes may not appear instantly. Let users know that activation can require a short propagation period.

## Cloudflare Settings

1. Confirm that the domain is added as a zone in Cloudflare.
2. Create API credentials or use an existing secure key.
3. Open **Settings > System Settings** in the admin panel.
4. Fill in the Cloudflare or domain management fields.
5. Check the main domain and DNS creation settings.
6. Create a test subdomain to verify the connection.

## Create A Category

1. Open **Store Management > Product Categories**.
2. Create a category for domain products.
3. Explain clearly what users are buying.
4. Use a visual that matches domain or DNS management.

## Create The Product

1. Open **Store Management > Products**.
2. Create a new product.
3. Select the product type for domain or subdomain sales.
4. Fill in the product name, price, description, and category.
5. Add domain rules and DNS target details.
6. Explain renewal and usage conditions.
7. Run a test purchase to check the request flow.

## Form Fields

| Field           | Purpose                                            |
| --------------- | -------------------------------------------------- |
| Product Name    | Name shown in the store.                           |
| Category        | Controls where the product is listed.              |
| Domain Type     | Separates domain and subdomain products.           |
| Main Domain     | Main domain used for subdomain creation.           |
| DNS Target      | IP address or target the record points to.         |
| Price           | Product sale price.                                |
| Renewal Rules   | Explains renewal for timed products.               |
| Description     | Lists rules the buyer should know before purchase. |
| Product Icon    | Icon shown on the product card.                    |
| Gallery / Video | Optional visuals explaining the domain flow.       |

## What Buyers Should Know

Add these details to the product page:

* What domain format will the user receive?
* How long can DNS activation take?
* Does the domain expire?
* Is renewal required?
* Can restricted or trademarked names be rejected?
* Can the user change the target IP or address later?

## Before Publishing

<Check>
  Was the Cloudflare connection tested?
</Check>

<Check>
  Is the main domain managed through the correct zone?
</Check>

<Check>
  Was a test subdomain created and resolved?
</Check>

<Check>
  Are duration, price, and rules clear on the product page?
</Check>

## Common Issues

**The subdomain is not created.**\
Check the Cloudflare API key, zone information, and panel settings.

**DNS appears slowly.**\
DNS propagation can take time. Wait a few minutes and test again.

**The buyer expected a different domain.**\
Show an example domain format in the product description.

**Cloudflare returns an error.**\
Make sure the API credentials can edit DNS records for the correct zone.
