How to Start, Stop and Restart DNS Server on cPanel/WHM server
How to Start, Stop and Restart DNS Server on cPanel/WHM server
Your can restart DNS Server either through server backend or via WHM (Webhost manager)
1. Start, Stop and Restart DNS Server from server backend
You must have server root access to restart the service.
a. Log into cPanel server via SSH as ‘root’
b. Run the below command to start, stop and restart named service
Command to start named service
/etc/init.d/named start
OR
service named start
Command to restart named service
/etc/init.d/named restart
OR
service named restart
Command to stop named service
/etc/init.d/named stop
OR
service named stop
Command to check named service status
/etc/init.d/named status
OR
service named status
2. Restart DNS Server from server backend using cPanel script
a. Log into server via SSH
b. Run the below cPanel script to restart named service
command : /scripts/restartsrv_named
3. How to Restart DNS Server from WHM
a. Log into WHM using server root password
URL to access WHM : http://YourServerIP:2086
Username : root
Password : Enter the server root password to login
b. In the WHM search box search for “DNS Server” like shown in the picture below
c. Click on “DNS Server” under “Restart Services”
Home » Restart Services » DNS Server
You will see a prompt “Are you sure you wish to restart this service?”
Click on “Yes” to restart the service.
4. How to start, stop and restart DNS Server on CentOS 7 Server
Command to check status of named service : systemctl status named.service
Command to start named service : systemctl start named.service
Command to stop named service : systemctl stop named.service
Command to restart named service : systemctl restart named.service