Post Date: November 21, 2020
Last Updated: November 19, 2026
Introduction
This guide explains how to add a new domain to a hosting account in the DirectAdmin panel. DirectAdmin is a web hosting control panel that manages websites, email, DNS and databases from one interface. When you add another domain, DirectAdmin creates its web folder, web server settings and DNS zone for you.
The original guide listed the steps but not the details. This version adds the prerequisites, the DNS step that makes the domain work, a verification step, the HTTPS login address and troubleshooting.
Warning: Before you add a new domain, check that your package allows more domains and has enough disk space and bandwidth left. A domain you create under the wrong user account is awkward to move later, so confirm which user you are logged in as.
Prerequisites
Before you add a new domain, make sure you have:
- The DirectAdmin login (user level or reseller level) for the hosting account
- The server IP address or hostname, and access to port 2222 in your firewall
- A registered domain name, with access to its DNS or nameserver settings
- Free room in the account’s package: domain limit, disk space and bandwidth
- The settings you want for the new domain: bandwidth limit, disk space limit, SSL, CGI and PHP
Architecture
- DirectAdmin runs on port 2222 and gives each user a panel for their own account
- A user account owns one or more domains, within the limits of its package
- Domain Setup creates the domain’s folders under
/home/username/domains/example.com/, withpublic_htmlas the website folder - DirectAdmin also writes a web server virtual host and a DNS zone for the new domain
- The domain starts to work once its A record or nameservers point to the server’s IP address
The image below shows how it fits together. For the official reference, see the DirectAdmin documentation.

Steps to Add a New Domain in the DirectAdmin Panel
1. Log In to DirectAdmin
Open the panel in your browser:
https://your-server-IP:2222
Replace your-server-IP with the server’s IP address or hostname. Port 2222 is the default DirectAdmin port. Log in with your username and password.
Note: The original guide used
http://. Current DirectAdmin versions usehttps://, and the browser may warn about a self-signed certificate until a trusted one is installed.
2. Open Domain Setup
In the Your Account section, click Domain Setup. The page lists the domains already on the account.

3. Click Add Another Domain
Click Add Another Domain. This is the screen where you add a new domain to the account. Enter the domain name, such as example.com, without http:// or www.

4. Set the Domain Options and Create It
Choose the settings you need, then click Create:
- Bandwidth Limit: the monthly transfer for this domain, or unlimited if the package allows it
- Disk Space Limit: the storage for this domain, or unlimited if allowed
- Secure SSL: tick it if the server supports SSL, otherwise leave it unchecked
- CGI Access: allows CGI scripts, and most modern sites do not need it
- PHP Access: tick it for WordPress and other PHP sites
DirectAdmin creates the domain and shows a confirmation message.

5. Point the Domain to the Server and Verify
At your registrar, point the domain to the server. Either set an A record to the server IP, or change the nameservers to the ones your host gave you. DNS changes can take from a few minutes to 48 hours.
Check the DNS and the folder:
dig +short example.com ls /home/username/domains/example.com/public_html
The first command should print your server IP. To test the site, upload a simple index.html to public_html and open http://example.com. After the site loads, install a free SSL certificate from the domain’s SSL Certificates page in DirectAdmin if you did not enable it earlier.
Troubleshooting
If you cannot add a new domain or the new site does not open, check these:
- A message that the domain already exists: Another user on the server already owns it. Ask the server administrator to check, because a domain can belong to only one account
- A message that you reached your domain limit: Your package allows a fixed number of domains. Ask your reseller or host to raise it, or remove a domain you no longer use. The exact wording depends on your DirectAdmin version
- You can’t find Add Another Domain: Domain Setup is at the user level. If you are logged in as admin or reseller, switch to the user account first
- The page at port 2222 won’t load: The port is blocked. Open
2222in the server firewall and in your cloud security group - The domain shows the host’s default page or another site: DNS still points elsewhere, or the change has not spread yet. Run
dig +short example.comand compare it with the server IP - You add a new domain but SSL is unavailable: Enable the domain’s DNS first, then request a certificate from the SSL Certificates page
- A browser warning on the login page: This is the self-signed panel certificate. Install a trusted certificate for the hostname when you can
Conclusion
To add a new domain in DirectAdmin, log in on port 2222, open Domain Setup, click Add Another Domain, set the limits and options, and click Create. Then point the domain’s DNS to your server and test with a simple index.html. Check the package limits before you start, because most failures come from limits or DNS.
Frequently Asked Questions (FAQs)
How many domains can I add in DirectAdmin?
It depends on your package. The host or reseller sets a domain limit, which can be a fixed number or unlimited.
Can I add a new domain without changing the nameservers?
Yes. Set an A record at your current DNS provider to the server IP. Nameservers are only needed if you want DirectAdmin to host the DNS.
What is the difference between Add Another Domain and a subdomain?
A domain is a separate website name, like example.com. A subdomain is a part of an existing domain, like blog.example.com. Use the Subdomain Management page for subdomains.
Where are the website files stored?
In /home/username/domains/example.com/public_html. Upload your files there with File Manager or FTP.
Related Articles
How to Install VestaCP on Linux Server
How to Install Let’s Encrypt with Apache on CentOS 7
Talk to Our Technology Experts
Launching a new website on your domain? Our team can design, build, and host your site so it is ready to go live through our Web Development Services.
Connect with our technology experts.
