Blog

DNS records for a domain: Cloudflare, the panel's own zone and the proxy

Add A records for a domain and its subdomains, check them from public resolvers, and learn why the panel writes DNS into its own zone when it holds one.

DNS records for a domain: Cloudflare, the panel's own zone and the proxy

2026-11-29

A domain on AI Hosting Panel is served by Cloudflare DNS or by the panel's own DNS zone. The panel writes its records (for a load balancer pool, a mail domain or a certificate) into the zone that holds the domain. This guide shows the steps we used, and the one trap to avoid.

Add an A record in Cloudflare

  1. Open the zone, then DNS, then Records, then Add record.
  2. Choose type A. For the root domain set Name to @. For a subdomain set the label, for example shop.
  3. Set IPv4 address to the public IP of your server.
  4. Set Proxy status to DNS only while you test certificates. Press Save. The row shows DNS only.
  5. Repeat for www and for each subdomain.

Check the answer from public resolvers

  1. On Windows, in PowerShell: Resolve-DnsName your-domain -Type A -Server 1.1.1.1 -DnsOnly -NoHostsFile
  2. On Linux: dig @1.1.1.1 your-domain A +short
  3. The answer shows your server IP. A name that does not exist returns NXDOMAIN.
  4. On the panel, open Domains and press Check DNS. The panel says whether the domain points at this server.

The panel's own zone

On the DNS Zone Editor page you can add a zone and choose This panel (own DNS) or Cloudflare. A zone the panel holds is kept in its database. The panel's own DNS server answers for it only when the nameservers are set in the server settings (AIHOSTINGPANEL_DNS_NAMESERVERS). Until then the zone is kept, but nothing on the internet reads it.

Good to know: when the panel holds its own zone for a domain, the panel writes that domain's records into that zone, not into Cloudflare. Mail and load balancer records go there too. If Cloudflare should answer for the domain, remove the panel's own zone first.

Cloudflare writes from the panel

The panel writes to Cloudflare only when the server has a Cloudflare API token in AIHOSTINGPANEL_CLOUDFLARE_TOKEN. Without it, the panel says: This zone is on Cloudflare, but no Cloudflare token is configured. The token is a secret. The owner puts it in the server's settings file; it is never pasted into a chat or a shared field.

All posts