Quick answer: First point the domain's DNS A record at your server IP, then add the domain in your panel: CloudPanel Sites → Add Site, cPanel Domains, HestiaCP WEB → Add Web Domain, CyberPanel Websites → Create Website, aaPanel Website → Add site. Once DNS resolves to the server, issue an SSL certificate.
Overview
"Adding a domain" tells the web server which site to serve for which hostname (a virtual host) and creates the document root for its files. DNS and the panel must agree: the domain resolves to your server, and the panel knows the domain. Order matters — pointing DNS first makes SSL issuance work on the first try.
Before you start
- A registered domain and access to its DNS management.
- Your server's IP address (Client Area → your service).
- A working panel and, ideally, a plan for
www(serve or redirect).
Step-by-step guide
- Point the domain: create an A record for
@(andwww) with your server IP. - Wait for DNS to resolve (usually minutes; verify with
dig +short yourdomain.com). - Add the domain in your panel:
- CloudPanel: Sites → Add Site → choose the app type (PHP/WordPress) and enter the domain.
- cPanel: Domains → Create a New Domain (or the account's primary domain in WHM).
- HestiaCP: WEB → Add Web Domain.
- CyberPanel: Websites → Create Website (pick PHP and package).
- aaPanel: Website → Add site (set PHP version and optional database in the same dialog).
- Upload a test
index.html/index.phpto the site's document root and open the domain over HTTP. - Issue SSL — see How to issue an SSL certificate — and enable the HTTPS redirect.
Common issues
- Panel default page instead of your site: DNS still points elsewhere, or the domain was added with a typo.
- SSL issuance fails: the domain does not resolve to this server yet — fix DNS first.
- www works but the bare domain does not (or vice versa): add A records/aliases for both names.
- Old content shows: your ISP's DNS cache — test with
digagainst1.1.1.1or use a propagation checker.
When to contact support
If DNS resolves to your server but the panel-created site is still not reachable from outside (and the firewall allows 80/443), open a support ticket with the domain and server IP.
Frequently asked questions
Should I point DNS before or after adding the domain?
Point DNS first when possible. The panel accepts the domain either way, but SSL issuance and testing only work once the domain resolves to your server, so DNS-first saves a retry.
How long does DNS take to update?
Typically minutes to a few hours, depending on the record's TTL and resolver caches. Lower the TTL in advance when you plan a change, and verify with dig against 1.1.1.1.
Do I need separate entries for www and the bare domain?
Yes — create A records for both @ and www, and include both names when issuing the SSL certificate. Most panels then let you redirect one to the other automatically.
Related articles
- How to create a website in a control panel
- How to issue an SSL certificate
- How to manage PHP versions
- Common control panel installation errors
Need a hand? Contact Cloud2Y support →
