Install cPanel DNSonly

Categories: cPanel/WHM, DNS

On a fresh CentOS:

Open the custom SSH port in firewalld and modify it in sshd_config:

firewall-cmd --add-port=2202/tcp --permanent
firewall-cmd --reload
yum install -y policycoreutils-python
semanage port -a -t ssh_port_t -p tcp 2202
systemctl restart sshd

Open port 53 in firewalld:

firewall-cmd --zone=public --add-port=53/tcp --permanent 
firewall-cmd --zone=public --add-port=53/udp --permanent

Stop & Disable Network Manager (cPanel doesn’t like it)

systemctl stop NetworkManager
systemctl disable NetworkManager

Go home, get the installer and install:

cd /home
curl -o latest-dnsonly -L
sh latest-dnsonly