This article demonstrates how to install cPanel DNSONLY.
What is cPanel DNSONLY?
cPanel DNSONLY allows you to run a dedicated physical nameserver with a cPanel/WHM interface. cPanel DNSONLY is an ideal solution for utilizing the DNS Cluster in cPanel and WHM.
Prerequisites
In order to install cPanel DNSONLY, you must have the following:
- A VPS server or dedicated server with AlmaLinux 8/9, Rocky Linux 8/9, CloudLinux 7/8/9. or Ubuntu 22.04 LTS. (Launch a KVM VPS)
- Root access to the server.
- NetworkManager must be disabled. (Read our guide: Disable NetworkManager in CentOS 7)
- Your server must have following ports open allowing traffic: 53, 953, and 2087. (See: How to Open Ports in Linux Server)
- A properly-configured Ethernet device with a static IP address and fully-qualified hostname.
How to Install cPanel DNSONLY
To install cPanel DNSONLY, perform the following steps on your server:
- Login to your server as root via SSH.
- Run the following commands:
echo "CPANEL=lts" >> /etc/cpupdate.conf echo "RPMUP=daily" >> /etc/cpupdate.conf echo "SARULESUP=daily" >> /etc/cpupdate.conf echo "STAGING_DIR=/usr/local/cpanel" >> /etc/cpupdate.conf echo "UPDATES=daily" >> /etc/cpupdate.conf cd /home curl -o latest-dnsonly -L https://securedownloads.cpanel.net/latest-dnsonly sh latest-dnsonly
If your server is properly configured, the installation will run automatically for several minutes. When this process is complete, you can now login to WHM via your browser from https://YOURIP:2087/ or https://YOURHOSTNAME:2087/
Conclusion
You now know how to install cPanel DNSONLY.

👀 Choose SSD-powered VPS servers for increased speed, power, and security! Now 50% off- starting from only $3.19/mo.
